-
Notifications
You must be signed in to change notification settings - Fork 10.1k
Closed
Description
I noticed that the xhr-* transports do not support cross-domain requests, while the websocket transport does (by checking the listener's origin property).
I didn't realize what the exact problem was until I did a fair amount of digging. It looks like xhr-* transports may have to listen for the 'OPTIONS' HTTP method and respond appropriately for this to work? Apparently the 'OPTIONS' method is a "pre-flight" message that is essentially requesting to make a request to the server and a message has to be sent back for the real (GET in Socket.io's case) request to occur.
I'll try and see if I can get something going, but I wasn't sure if support for this is coming soon or not?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels