Skip to content

CORS wildcard origin and allow credentials - #2405

Merged
aldas merged 2 commits into
labstack:masterfrom
aldas:cors_wildcardcredential
Feb 21, 2023
Merged

aldas merged 2 commits into
labstack:masterfrom
aldas:cors_wildcardcredential

Conversation

@aldas

@aldas aldas commented Feb 21, 2023

Copy link
Copy Markdown
Contributor

Add middleware.CORSConfig.UnsafeWildcardOriginWithAllowCredentials to make UNSAFE usages of wildcard origin + allow cretentials less likely.

See: #2400

…ly be able to use it in future and cause data race
… make UNSAFE usages of wildcard origin + allow cretentials less likely.
@codecov

codecov Bot commented Feb 21, 2023

Copy link
Copy Markdown

Codecov Report

Base: 92.80% // Head: 92.80% // No change to project coverage 👍

Coverage data is based on head (581ebc3) compared to base (b888a30).
Patch coverage: 60.00% of modified lines in pull request are covered.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2405   +/-   ##
=======================================
  Coverage   92.80%   92.80%           
=======================================
  Files          38       38           
  Lines        4506     4506           
=======================================
  Hits         4182     4182           
  Misses        236      236           
  Partials       88       88           
Impacted Files Coverage Δ
middleware/csrf.go 89.42% <33.33%> (ø)
middleware/jwt.go 92.98% <33.33%> (ø)
middleware/cors.go 92.85% <100.00%> (ø)
middleware/key_auth.go 93.42% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@aldas
aldas requested a review from lammel February 21, 2023 10:45
@aldas

aldas commented Feb 21, 2023

Copy link
Copy Markdown
Contributor Author

@lammel ping

@lammel lammel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.
Nothing to add.

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