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

refactor: deprecate CORSMiddleware from public interface. #3404

Merged
merged 3 commits into from
Apr 19, 2024

Conversation

peterschutt
Copy link
Contributor

It is used internally, its use is hardcoded and it doesn't work similar to other middleware when added to layers.

Should be implementation detail IMO.

Closes #3403

Description

Closes

@peterschutt peterschutt requested review from a team as code owners April 18, 2024 06:08
@github-actions github-actions bot added area/middleware This PR involves changes to the middleware area/private-api This PR involves changes to the privatized API size: small pr/internal labels Apr 18, 2024
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.28%. Comparing base (fb5f744) to head (e3b95b3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3404   +/-   ##
=======================================
  Coverage   98.27%   98.28%           
=======================================
  Files         323      324    +1     
  Lines       14766    14774    +8     
  Branches     2345     2346    +1     
=======================================
+ Hits        14512    14520    +8     
  Misses        116      116           
  Partials      138      138           

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

It is used internally, its use is hardcoded and it doesn't work similar to other middleware when added to layers.

Should be implementation detail IMO.

Closes #3403
@peterschutt peterschutt changed the base branch from cors-mounted-apps to main April 19, 2024 02:31
@peterschutt peterschutt enabled auto-merge (squash) April 19, 2024 02:32
@peterschutt peterschutt enabled auto-merge (squash) April 19, 2024 02:55
@peterschutt peterschutt merged commit 7ac2bef into main Apr 19, 2024
26 checks passed
@peterschutt peterschutt deleted the deprecate-cors-middleware branch April 19, 2024 03:00
Copy link

sonarcloud bot commented Apr 19, 2024

Copy link

Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/3404

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/middleware This PR involves changes to the middleware area/private-api This PR involves changes to the privatized API area/testing pr/internal size: small
Projects
None yet
Development

Successfully merging this pull request may close these issues.

refactor: deprecate CORSMiddleware from public interface
2 participants