Skip to content

Add x-hoverxref-version to CORS #8927

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

Merged
merged 1 commit into from
Feb 17, 2022
Merged

Add x-hoverxref-version to CORS #8927

merged 1 commit into from
Feb 17, 2022

Conversation

ericholscher
Copy link
Member

This should fix hoverxref

This should fix hoverxref
@ericholscher ericholscher requested a review from a team as a code owner February 15, 2022 21:46
Copy link
Member

@humitos humitos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR looks good!

However, now that we are touching this, shouldn't we change it to extend the defaults instead of overwriting them all? The documentation shows how to do this https://github.com/adamchainz/django-cors-headers#cors_allow_headers-sequencestr

The default can be imported as corsheaders.defaults.default_headers so you can extend it with your custom headers. This allows you to keep up to date with any future changes

@humitos humitos merged commit b5a05f2 into master Feb 17, 2022
@humitos humitos deleted the hoverxref-fix branch February 17, 2022 13:53
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

Successfully merging this pull request may close these issues.

3 participants