I need to setup SameSite=none value in Nginx webserver

In case of using Nginx as main webserver and non reverse proxy will the below configuration work?

Inside server block

location {

proxy_cookie_path ~(.*) "$1; SameSite=none; secure; httponly";


This can only add SameSite support. For change it, you have to install Nginx 1.19.3 and set as below:

proxy_cookie_flags one samesite=none;


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.