Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

aldas
Copy link
Contributor

@aldas aldas commented Sep 12, 2023

Allow CORS middleware to send Access-Control-Max-Age: 0 value (when config.MaxAge is negative number) to instruct browsers not to cache that response. This is backwards compatible change.

implements #2471

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.06% 🎉

Comparison is base (77d5ae6) 92.82% compared to head (f8f875a) 92.88%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2518      +/-   ##
==========================================
+ Coverage   92.82%   92.88%   +0.06%     
==========================================
  Files          39       39              
  Lines        4652     4655       +3     
==========================================
+ Hits         4318     4324       +6     
+ Misses        242      240       -2     
+ Partials       92       91       -1     
Files Changed Coverage Δ
middleware/cors.go 95.34% <100.00%> (+2.49%) ⬆️

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

@aldas
Copy link
Contributor Author

aldas commented Sep 12, 2023

@lammel or @vishr please review

@aldas aldas merged commit 4bc3e47 into labstack:master Sep 19, 2023
@aldas aldas mentioned this pull request Oct 11, 2023
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