Add wpsModifyResponseHeaders function#48
Conversation
This commit adds a new function to the `WaiProxySettings` that allows modifying the response headers before they are sent upstream.
snoyberg
left a comment
There was a problem hiding this comment.
No objection from me. To be honest though, this library isn't in active maintenance right now. If you're still using it, interested in becoming a comaintainer?
Unfortunately I'm father of two small twins, so time is really tight for me as well 😉 I'm happy to occasionally help, but I'm afraid that as far as comaintenance goes, I have to decline, sorry 😢 |
|
Congratulations on the twins! |
Thanks! They are 2.5 years old now, but they are demanding to say the least 😅 I haven't forgot making amendments on this PR, but I'm out of hours for this particular client, so I will deal with those next week :) Take care! |
|
Wow small world, my twins are also 2.5 years old! |
Hey @snoyberg ,
I hope you are safe and healthy.
This commit adds a new function to the
WaiProxySettingscalledwpsModifyResponseHeaders, that allows modifying the response headers before they are sent upstream. The primary usage would be for example to tweak things like theContent-Security-Policythat now modern browsers are enforcing when it comes to static content, and that needs to be amended in case the proxied server is too stringent.If you are not fan of the approach let me know, I'm happy to make changes as needed.
Take care,
Alfredo