![secure cookies](https://www.webconn.tech/wp-content/uploads/2022/02/secure-cookies-300x157.jpg)
To secure cookies in NGINX, add the following directive to nginx configuration file.
add_header Set-Cookie "Path=/; HttpOnly; Secure; SameSite=strict";
To secure cookies in NGINX, add the following directive to nginx configuration file.
add_header Set-Cookie "Path=/; HttpOnly; Secure; SameSite=strict";