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

SetOnResponse with RewriteValueRule v0.2.7 doesn't work #50

Open
kanchev1 opened this issue Sep 3, 2023 · 1 comment
Open

SetOnResponse with RewriteValueRule v0.2.7 doesn't work #50

kanchev1 opened this issue Sep 3, 2023 · 1 comment

Comments

@kanchev1
Copy link

kanchev1 commented Sep 3, 2023

Hi,

Thanks for your work on this great plugin, it'd be amazing if the response header manipulation works!

I have a simple rule to remove the Secure flag of a cookie:

            - Rule:
              Name: 'Unsecure Cookie'
              Header: 'Set-Cookie'
              Value: '(.*)Secure(.*)'
              ValueReplace: 'BABLA-$1-$2'
              Type: 'RewriteValueRule'
              SetOnResponse: true

This is simply a basic test rule to check if it's working at all. The cookies in the response are unchanged.

The plugin actually works on my configuration since I also Set some request headers.

I'm using traefik 2.10.4.

UPDATE: The following plugin seems to be the only one able to modify the response headers correctly: https://github.com/XciD/traefik-plugin-rewrite-headers

@I-lander

This comment was marked as off-topic.

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