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

Is it possible to add a new header before the proxy request is sent? #268

Open
baens opened this issue Jul 28, 2022 · 1 comment
Open

Is it possible to add a new header before the proxy request is sent? #268

baens opened this issue Jul 28, 2022 · 1 comment

Comments

@baens
Copy link

baens commented Jul 28, 2022

Hello!

I'm trying to create a rewrite filter that will add a new header that gets passed down to the proxy endpoint. It appears that the headers are read only for the filter. Is this intended, or was there a way to add this I just haven't been able to discover?

Thanks!

@xfeep
Copy link
Member

xfeep commented Aug 5, 2022

@baens
Please try to use directive proxy_set_header.
BTW you can also try to set variables within rewrite handlers and use them with proxy_set_header.

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