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

Update dependencies #24

Merged
merged 11 commits into from
Jul 12, 2024
Merged

Update dependencies #24

merged 11 commits into from
Jul 12, 2024

Conversation

dhontecillas
Copy link
Contributor

@dhontecillas dhontecillas commented Jul 5, 2024

Update dependencies

⚠️ changes in behaviour

  • the OPTIONS call now returns 204 intead of 200

  • allowed headers are "normalized" to lowercase, however, when those are received from the client, those headers are not normalized, so, are going to fail if not sent in lower case. If we wanted to allow different case to match, we should lowercase it here: https://github.com/rs/cors/blob/master/cors.go#L368 : however, that is a "feature" not a bug : SortedSet.Subsumes bug rs/cors#180

  • empty configuration no longer allows all the requests by default : now you have to specify wildcards for the allowed_origins and the allowed_headers. The last commit adapts the config reader to maintain behaviour.

dhontecillas and others added 9 commits July 7, 2024 11:30
- options_success_status: allows to define the options success status code.
- options_passthrough:  Instructs preflight to let other potential next handlers to process the OPTIONS method. Turn this on if your application handles OPTIONS.
- allow_private_network: Indicates whether to accept cross-origin requests over a private network.

Signed-off-by: Daniel Ortiz <dortiz@krakend.io>
Signed-off-by: Daniel Ortiz <dortiz@krakend.io>
Signed-off-by: Daniel Ortiz <dortiz@krakend.io>
@taik0
Copy link
Member

taik0 commented Jul 11, 2024

Ready!

Signed-off-by: Daniel Ortiz <dortiz@krakend.io>
@kpacha kpacha merged commit 705666f into master Jul 12, 2024
5 checks passed
@kpacha kpacha deleted the update_dependecies branch July 12, 2024 15:36
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.

3 participants