Closed Bug 761451 Opened 12 years ago Closed 12 years ago

Cross-Domain WebSocket

Categories

(Firefox :: Untriaged, defect)

12 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: therobkellett, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20100101 Firefox/12.0 Build ID: 20120420145725 Steps to reproduce: I attempted to open a WebSocket from one domain to a server from another domain. Actual results: An NS_ERROR_DOM_SECURITY_ERR is thrown. Expected results: The WebSocket should have connected, because as far as I understand, WebSockets were made for cross-domain communication. Note that this works in Chrome.
WFM, what "Access-Control-Allow-Origin" are your websocket server responding with?
Ah, I wasn't sending an "Access-Control-Allow-Origin." I added one and now it's working fine. Sorry for the trouble.
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.