Skip to content
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

Enable htmx headers in CORS contexts #141

Closed
jdevries3133 opened this issue Oct 27, 2021 · 1 comment
Closed

Enable htmx headers in CORS contexts #141

jdevries3133 opened this issue Oct 27, 2021 · 1 comment

Comments

@jdevries3133
Copy link

Description

Hi! Thanks for all the work towards this great project.

In CORS contexts, headers need to be explicitly allowed for requests, and exposed for responses via the Access-Control-Allow-Headers and Access-Control-Expose-Headers headers, respectively. It might be handy if this library's middleware could take care of that through a simple boolean setting.

@jdevries3133 jdevries3133 changed the title Enable htmx headers in CORS Enable htmx headers in CORS contexts Oct 27, 2021
@adamchainz
Copy link
Owner

I maintain a separate library for CORS: https://github.com/adamchainz/django-cors-headers

I don't see anything htmx specific to do here. If there is something that you can't achieve with django-cors-headers, please elaborate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants