Deploy Flask-socketIO on IIS version 10 #1778
Unanswered
kavindevarajan
asked this question in
Q&A
Replies: 1 comment
-
IIS is not a supported platform for Flask-SocketIO. I wasn't aware of any CORS issues, but many people have tried to use this web server and found no way to make WebSocket work. Unfortunately I do not use IIS so I cannot help troubleshoot. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have created a python project to update a real time status for client side angular application. Below attached python code is working fine when doing under CMD-admin. But when I tried to deploy it on IIS I'm facing CORS issue. Even this CORS policy issue also raised while testing in CMD, at that time I added cors_aollowed_origins in
socket = SocketIO(app, cors_allowed_origins='*')
then it worked fine in CMD. But while doing with IIS no it's not working!!I also installed CORS module in IIS using web installer available in IIS. And I referred how to enable CORS module in
web.config
file located at my windows server machine. Link to refer - IIS CORS module Configuration Reference.Due to an enterprise requirements I must have to deploy it on Windows IIS not on linux machine!
To configure python Flask application in my machine I referred this link - Deploy python FLask application in IIS. I followed this link to setup my another two flask applications in IIS and both are working fine without any issues. But while doing this same configuration setup for flask-socketIO I'm facing this CORS issue. The highlight is those two flask applications till now didn't raised this CORS policy error!!
My system details:
Web-Socket code:
Web.config file:
Please guide me how to overcome this CORS issue as soon as possible!! Probably your solution will also helpful to so many developers!!
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions