Closed
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.