8000 [cors] Disallow anyHost + allowCredentials by Playacem · Pull Request #2321 · javalin/javalin · GitHub
[go: up one dir, main page]

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

[cors] Disallow anyHost + allowCredentials #2321

Merged
merged 1 commit into from
Nov 2, 2024

Conversation

Playacem
Copy link
Member
@Playacem Playacem commented Sep 1, 2024

While helping people with CORS this is one thing I have seen people use and then getting confused as to why it doesn't work. This is already documented in the cors plugin page but catching this on startup should be a better experience.

This is technically a breaking change but as browsers already reject this combination should be considered a bug fix as we adopt the browser behaviour, leading to a better experience as you now get immediate feedback on what went wrong instead of having to debug this in a browser.

Copy link
codecov bot commented Sep 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.30%. Comparing base (3afb5b3) to head (357b9d3).
Report is 6 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2321   +/-   ##
=========================================
  Coverage     86.30%   86.30%           
- Complexity     1311     1314    +3     
=========================================
  Files           148      148           
  Lines          4044     4046    +2     
  Branches        508      509    +1     
=========================================
+ Hits           3490     3492    +2     
  Misses          333      333           
  Partials        221      221           

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

@tipsy tipsy merged commit 9fb548e into javalin:master Nov 2, 2024
15 checks passed
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.

2 participants
0