http://localhost:3000 is not an accepted origin. (further occurrences of this error will be logged with level INFO) #855
-
After hosing, I am not able to initiate a connection to the WebSocket app from a remote application(react). I am able to connect using client.py but not from JS. js script --> https://cdn.socket.io/4.4.1/socket.io.min.js const sio = io('http://qsocket.somedomain.com/', { transports: ["websocket"] }); Error Log from app.py : http://localhost:3000 is not an accepted origin. (further occurrences of this error will be logged with level INFO) App Version Info: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
See the documentation regarding cross-origin (CORS) configuration: https://python-socketio.readthedocs.io/en/latest/api.html#server-class. The option is called |
Beta Was this translation helpful? Give feedback.
See the documentation regarding cross-origin (CORS) configuration: https://python-socketio.readthedocs.io/en/latest/api.html#server-class. The option is called
cors_allowed_origins
and in your case should be set tohttp://localhost:3000
(as it appears in your error message.