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

How to distinguish between headers of proxied response to those of the original response object #465

Open
eladbs opened this issue Sep 22, 2020 · 0 comments

Comments

@eladbs
Copy link

eladbs commented Sep 22, 2020

Hi,

Is there a way in the userResHeaderDecorator to distinguish between headers of the proxied response to those of the original response object?
Is there a way to make sure that some headers are not overriding those in the original response?

For i.e. let's say I have CORS module enabled on the route - it will put the header access-control-allow-origin in the response object.
if the underlying service I proxy my request to will put the same header as well, it will override the original one.

Is it possible to distinguish somehow? exclude header from proxied response?

Thanks!
Elad.

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

1 participant