-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple Header Support #91
Comments
The docs are a little confusing. The |
@jkarneges I tried your suggestion but still getting CORS issues. |
|
In my web application, the Frontend needs to send multiple custom headers (Ex. username, userid, pagename, etc.) for authorization & other use cases.
The Normal Rest Api (GET, POST) communication with the server is working fine, but the Server Sent Event connection is giving CORS error in the preflight request.
I am using django-cord-headers together with eventstream cors flags to handle CORS. Here are my configs in the settings.py:
I believe that the CORS_ALLOWED_HEADERS doesn't work with eventstream. But also at the same time, the EVENTSTREAM_ALLOW_HEADER only takes one header as mentioned here.
What can I do if I want to allow multiple headers (Ex. username, pagename, userid) in the eventstream as well?
Below is my asgi.py file:
The text was updated successfully, but these errors were encountered: