[fix] Include the protocol in the origins check (#3198)
Previously, the protocol was not taken in account, which caused the following behaviour:
```js
io.origins('https://foo.example.com:443'); // ok as a string
io.origins(['https://foo.example.com:443'); // not ok as an array
```
Fixes #3190 D
Damien Arrachequesne committed
1f1d64bab61a273712a199591a3f76210d8c0959
Parent: f4fc517
Committed by GitHub <noreply@github.com>
on 3/10/2018, 7:56:42 AM