Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nginx remove Secure Flag to Cookies from proxied server

I'm using Nginx as a reverse proxy server. Is it possible to Remove the "secure" flag to the cookies somehow using Nginx? Modifying the path is possible so I guess it's also possible to modify cookie.

like image 439
Larry Lu Avatar asked Jan 13 '17 05:01

Larry Lu


1 Answers

An imperfect method:

proxy_cookie_path "~*^(.*?)$" $1\nX-User-Value:;
like image 103
wangcj Avatar answered Nov 09 '22 22:11

wangcj