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

Duplicate CORS response headers #4164

Open
frudder opened this issue Feb 25, 2025 · 2 comments
Open

Duplicate CORS response headers #4164

frudder opened this issue Feb 25, 2025 · 2 comments

Comments

@frudder
Copy link

frudder commented Feb 25, 2025

  1. I use gin-contrib/cors pkg to handle cross-origin requests
  2. I used ReverseProxy to proxy downstream services in the project. The CORS response headers from the downstream service are duplicated with the headers from gin-contrib/cors, such as Access-Control-Allow-Origin. My downstream service is a Java project.
@hubeoo
Copy link

hubeoo commented Feb 27, 2025

this is a ReverseProxy issue

@frudder
Copy link
Author

frudder commented Mar 3, 2025

this is a ReverseProxy issue

I'm sorry, I didn't make myself clear. I am using the implementation of ReverseProxy in the reverseproxy.go file of the Go standard library net/http/httputil

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

No branches or pull requests

2 participants