-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood issue for new contributors to get started withGood issue for new contributors to get started with
Milestone
Description
You want to:
- report a bug
- request a feature
Current behaviour
When serving the client via settings the serveClient
option, the client is not served with the same CORS headers as the actual socket.io server.
Steps to reproduce (if the current behaviour is a bug)
Start a server with serveClient: true
and request /socket.io/socket.io.js
with an Origin
header set.
Observe that the response does not have any Access-Control-Allow-Origin
header set.
Expected behaviour
That the response has the same CORS headers as the normal operation.
Other information (e.g. stacktraces, related issues, suggestions how to fix)
This function (and the corresponding serveMap
) should do the same origin checking as this code.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood issue for new contributors to get started withGood issue for new contributors to get started with