CORS request did not succeed in python flask-socketio CORS request did not succeed in python flask-socketio flask flask

CORS request did not succeed in python flask-socketio


You are using Flask-CORS to set up CORS on your Flask routes. You are missing a similar set up for Flask-SocketIO:

socketio = SocketIO(app, cors_allowed_origins=your_origins_here)

You can use '*' as the value to allow all origins (which I do not recommend), or set a single origin as a string, or a list of origins as a list of strings.