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

Netflix zuul redirect #176

Open
guymalachi opened this issue Oct 20, 2015 · 5 comments
Open

Netflix zuul redirect #176

guymalachi opened this issue Oct 20, 2015 · 5 comments
Labels

Comments

@guymalachi
Copy link

Hi,

I'm using zuul proxy server as a reverse proxy.
I send http request that going through zuul server and when i get response with status code 3++ (redirect), the browser doing redirect and shows me the url of the real server.
How can i solve this problem ?

Thanks a lot

@NiteshKant
Copy link
Contributor

You will have to write a filter for rewriting redirect location for the response that contains absolute URIs.

@guymalachi
Copy link
Author

Thanks...
I get response with location header to the redirect server.
I wrote post filter that add header with my new location value and the browser returns:
Duplicate headers received from server
ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION

How can i delete the origin location from header and insert my new one ?

Thanks

@corlaez
Copy link

corlaez commented Mar 27, 2017

I want to use a reverse proxy only with Zuul (no spring cloud) and i cannot write my redirect rule, could you provide a simple example?

@michaelcizmar
Copy link

The location header is just like any other header. Take a look at 326

Copy link

github-actions bot commented Dec 7, 2024

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Dec 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants