adamchainz / django-cors-headers

Django app for handling the server headers required for Cross-Origin Resource Sharing (CORS)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compatibility django channels

sabuhish opened this issue · comments

does this plugin is compatible with django channels (daphne webserver)?

I am having issue while vue.js front connects to my websocket on django channels.
it gets error on cors errors... any suggestions or solution would definitely be appreciated..

Screen Shot 2019-07-19 at 11 27 37 AM

Screen Shot 2019-07-19 at 11 28 12 AM

Screen Shot 2019-07-19 at 11 28 47 AM

Screen Shot 2019-07-19 at 11 30 12 AM

This plugin won't do anything with websocket requests, and I'm afraid I don't know how CORS works with them anyway.

The 404 errors you're seeing imply that your app doesn't have that URL, did you mean to hit the domain socket.io instead?

Sorry I can't help further