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

fix: Better CORS handling #61

Closed
wants to merge 1 commit into from
Closed

Conversation

guerinoni
Copy link
Contributor

@guerinoni guerinoni commented Mar 2, 2024

This inject cors as option using WithCors and also fix the usage
because before of this cors were not applied to server.

Fixes: #59

This inject cors as option using `WithCors` and also fix the usage
because before of this cors were not applied to server.
@@ -11,6 +11,7 @@ import (

"github.com/getkin/kin-openapi/openapi3"
"github.com/golang-jwt/jwt/v5"
"github.com/rs/cors"
)
Copy link
Member

Choose a reason for hiding this comment

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

rs/cors is a middleware, I don't want to add it to fuego : users should be free to chose the middlewares they want (some users don't need cors)

@EwenQuim EwenQuim closed this Mar 4, 2024
@EwenQuim
Copy link
Member

EwenQuim commented Mar 4, 2024

Thanks for the work and sorry to close this pull request!

@guerinoni guerinoni deleted the cors-fix branch March 4, 2024 09:28
@EwenQuim EwenQuim added this to the v0.13 milestone Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

CORS doesn't work
2 participants