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

Edit Header in Proxy Handler #1245

Open
enrique-quinteros opened this issue Aug 21, 2020 · 1 comment
Open

Edit Header in Proxy Handler #1245

enrique-quinteros opened this issue Aug 21, 2020 · 1 comment

Comments

@enrique-quinteros
Copy link

There is an option to add headers to the request or the response in the Proxy Handler, but is there a way to edit a header? For example, I want to edit the Set-Cookie header in the response to add "SameSite=none; Secure", but I don't want to lose the information in the cookie (i.e.Session ID).

Before
Set-Cookie: JSESSIONID=SOMEDATA

After
Set-Cookie: JSESSIONID=SOMEDATA; SameSite=none; Secure

Is it possible to do this with the current version? or is it needed to code a new feature?

I appreciate your help.

@skinkie
Copy link
Member

skinkie commented Aug 21, 2020

@enrique-quinteros at this moment it is not possible for regular expressions to be placed on headers (opposed to rewriting the URLs). So that would be a new feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants