Closed
Description
You want to:
- report a bug
- request a feature
Current behaviour
In the documentation it states, that io.origins()
takes an array of strings/origins (see example https://socket.io/docs/server-api/#server-origins-value), when in fact it does not. It only works when providing a string instead of an array.
Steps to reproduce (if the current behaviour is a bug)
Setting
io.origins(['http://localhost:3000'])
and then connecting from localhost:3000
does not work.
It only works when setting io.origins('http://localhost:3000')
Expected behaviour
Setup
- OS: macOS High Sierra 10.13.3
- browser: Chrome 64.0.3282.186
- socket.io version: 2.0.4
Metadata
Metadata
Assignees
Labels
No labels