flask socketio CORS
For some reason, cors_allowed_origins="*"
did not work for me. I had to instead specify the full address of the origin as the following:
socketio = SocketIO(app, cors_allowed_origins=['http://127.0.0.1:5500'])
The error message that says "<client_address> is not an accepted origin. (further occurrences of this error will be logged with level info)"
should indicate which address you should be typing in.
I solved by following:
socketio = SocketIO(app, cors_allowed_origins="*")