How to append SameSite=None to Set-Cookie? #11975
Replies: 2 comments 1 reply
-
Hey @rohitkrishna-marneni! 👋 I'm here to help you with any bugs, questions, or contributions you have. Let's tackle this together! Currently, the Unfortunately, there isn't a built-in feature in APISIX to dynamically append attributes like If you need to apply To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
Beta Was this translation helpful? Give feedback.
-
@dosu How to write a plugin for this usecase? |
Beta Was this translation helpful? Give feedback.
-
I have an endpoint which returns a set of cookies. However I need to append(or modify) these cookies so that they have SameSite=None attribute set. More about SameSite.
So I have my yml configuration like this.
I am able to modify the cookie uuid, however its actual settings like path=/ is being overriden. Also with this approach I can only append SameSite=None to one cookie(which is uuid in my case). However I want to append SameSite=None to all my cookies which are sent in set-cookie header after a call to endpoint /my-service.
Is there a way to do it in apisix?
Beta Was this translation helpful? Give feedback.
All reactions