How can I enable Secure cookie flag in Nginx?

secure cookies

To secure cookies in NGINX, add the following directive to nginx configuration file.

add_header Set-Cookie "Path=/; HttpOnly; Secure; SameSite=strict";

Leave a Reply