Skip to content
Advertisement

flask socketio CORS

I’ve been trying to send data from flask over socket io. I need to access this data from a different origin, but it is giving a CORS error. I have tried using all kinds of cross origin stuff and none of it has worked. Can somebody help with this.

The view that should be called thought socket io:

JavaScript

Running the server:

JavaScript

Advertisement

Answer

I solved by following:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement