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

feat(CORS): improve cors middleware #2326

Merged
merged 17 commits into from
Sep 22, 2024

Conversation

CaselIT
Copy link
Member

@CaselIT CaselIT commented Sep 10, 2024

Fixes: #2325

This is a follow up of #2304

@CaselIT CaselIT requested a review from vytas7 September 10, 2024 18:18
Copy link

codecov bot commented Sep 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (e470e62) to head (ce7d30b).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #2326   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           63        63           
  Lines         7593      7604   +11     
  Branches      1282      1285    +3     
=========================================
+ Hits          7593      7604   +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vytas7 vytas7 changed the title Improve cors middleware feat(CORS): improve cors middleware Sep 20, 2024
@CaselIT
Copy link
Member Author

CaselIT commented Sep 22, 2024

should be ready for review

Copy link
Member

@vytas7 vytas7 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

The main issue I can see is that it would not allow HEAD for static routes, but I see now that we have no proper HEAD support anyway. I will file another issue.

@vytas7 vytas7 merged commit afe6c9f into falconry:master Sep 22, 2024
37 checks passed
@CaselIT CaselIT deleted the improve_cors_middleware branch September 26, 2024 19:38
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.

Improve cors middleware to handle cases where allow header is not set by options responder
2 participants