-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No 'Access-Control-Allow-Origin' header is present on the requested resource. on 1.7.7 #240
Comments
I think I have similar problem. When I used http:// everything worked fine. When I added SSL support I have errors. When I am using xhr-pooling I get message about blocking content from other origin:
and in server:
I have apache on wamp using https on port 443 and Netty Socket.io server running on port 10000.
It writes that Firefox cannot connect to server wss:// but server is logging message about bad request. I tried change Access-Control-Allow-Origin parameter to "", ":*", "127.0.0.1", "localhost" and It didin't changed anthing. Any ideas? |
Maybe change the configuration's property--'origin' to hostname can be fix need the same host If the host is 'www.abc.com',the origin must be 'xxx.abc.com' |
We just tried this with @kanion . It's doesn't fix our problem. @380099106 thanks for help ! Anyone other ideas ? |
Hi, I met the same problem yesterday and fixed it mostly. from my experience, did you try to append prefix 'http://' to your hostname? sth like 'http://' + hostname. Hope it help and good luck. |
When we added http:// to hostname socket.io server dont started. We have folowing errors: Firefox: Zablokowano żądanie do zasobu innego pochodzenia: zasady „Same Origin Policy” nie pozwalają wczytywać zdalnych zasobów z „https://ssijpsu.org:10541/socket.io/?EIO=3&transport=polling&t=1437643425392-5” Podczas łączenia z serwerem ssijpsu.org:10541 wystąpił błąd. SSL otrzymał rekord przekraczający największą dozwoloną długość. (Kod błędu: ssl_error_rx_record_too_long Chrome: GET https://ssijpsu.org:10541/socket.io/?EIO=3&transport=polling&t=1437643539387-1 net::ERR_SSL_PROTOCOL_ERROR16.Request.create @ socket.io.js:2739Request @ socket.io.js:267316.XHR.request @ socket.io.js:261416.XHR.doPoll @ socket.io.js:264417.Polling.poll @ socket.io.js:301017.Polling.doOpen @ socket.io.js:295413.Transport.open @ socket.io.js:216412.Socket.open @ socket.io.js:1603Socket @ socket.io.js:1490Socket @ socket.io.js:14423.Manager.open.Manager.connect @ socket.io.js:273(anonymous function) @ socket.io.js:535 |
while your server's AuthorizationListener return false,it also will happened |
No description provided.
The text was updated successfully, but these errors were encountered: