Actual behavior (the bug)
I get a java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 exception when using the CorsPlugin and pass in header https://exactxcom. This is due to CorsUtils originsMatch method line 139, - see the split: clientOrigin.host.split('.', limit = 2)[1]
Expected behavior
Need to allow for a client host without a full stop.
To Reproduce
Enable Cors plugin, pass in an origin header like https://single see the fireworks.
Additional context
Actual behavior (the bug)
I get a
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1exception when using theCorsPluginand pass in headerhttps://exactxcom. This is due toCorsUtilsoriginsMatchmethod line 139, - see the split:clientOrigin.host.split('.', limit = 2)[1]Expected behavior
Need to allow for a client host without a full stop.
To Reproduce
Enable Cors plugin, pass in an origin header like
https://singlesee the fireworks.Additional context