Welcome! Log In Create A New Profile

Advanced

Response headers adding/filtering during proxy with njs

Grzegorz Kulewski
January 19, 2021 10:46AM
Hello,

Is it possible to (at least) add (or better also) filter response headers (like for example setting or modifying or deleting cookies, of course without harming other cookies set by the upstream) dynamically from njs after it is returned from the upstream (or cache) and before it is sent to the client?

I think something like that is possible with lua but I would really like to avoid using 3rd party modules and just go the njs route.

If not possible - is there any workaround? And/or can it be easily added in next release(s)?

Thank you in advance.

--
Grzegorz Kulewski

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Response headers adding/filtering during proxy with njs

Grzegorz Kulewski January 19, 2021 10:46AM

Re: Response headers adding/filtering during proxy with njs

Dmitry Volyntsev January 19, 2021 02:54PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 276
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready