Y
Hacker News
new
|
ask
|
show
|
jobs
by
MajesticHobo2
2222 days ago
> Also would a CORS "Access-Control-Allow-Origin: localhost" prevent the connections being established?
WebSocket isn't bound by CORS, AFAIK.
1 comments
rndgermandude
2222 days ago
It is not subject to CORS, same as any regular img load isn't, but the browser will send an Origin header with websocket handshakes, which you're supposed to check server-side.
link