Skip to content

Check for dot in client side host when using wildcard hosts#2133

Merged
tipsy merged 1 commit into
javalin:masterfrom
Playacem:gh-2104-cors-index-oob
Feb 24, 2024
Merged

Check for dot in client side host when using wildcard hosts#2133
tipsy merged 1 commit into
javalin:masterfrom
Playacem:gh-2104-cors-index-oob

Conversation

@Playacem

Copy link
Copy Markdown
Member

This fixes the Exception as described in #2104.

Will do another PR soon to rewrite it using the JDK's URI class.

Fixes #2104

@codecov

codecov Bot commented Feb 24, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.31%. Comparing base (54835a1) to head (2c751da).

Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2133   +/-   ##
=========================================
  Coverage     86.31%   86.31%           
- Complexity     1296     1297    +1     
=========================================
  Files           148      148           
  Lines          4040     4042    +2     
  Branches        505      506    +1     
=========================================
+ Hits           3487     3489    +2     
  Misses          334      334           
  Partials        219      219           

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

@tipsy tipsy merged commit bcba586 into javalin:master Feb 24, 2024
@Playacem Playacem deleted the gh-2104-cors-index-oob branch February 24, 2024 17:44
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.

CORS IndexOutOfBoundsException when you pass an Origin without a .

2 participants