You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,14 +34,15 @@ Earlier versions is not tested.
34
34
35
35
```Nginx
36
36
location / {
37
-
set_cookie_flag Secret HttpOnly secure;
37
+
set_cookie_flag Secret HttpOnly secure SameSite;
38
38
set_cookie_flag * HttpOnly;
39
-
set_cookie_flag SessionID secure;
39
+
set_cookie_flag SessionID SameSite=Lax secure;
40
+
set_cookie_flag SiteToken SameSite=Strict;
40
41
}
41
42
```
42
43
43
44
## Description
44
-
This module for Nginx allows to set the flags "**HttpOnly**"and "**secure**" for cookies in the "*Set-Cookie*" response headers.
45
+
This module for Nginx allows to set the flags "**HttpOnly**", "**secure**" and "**SameSite**" for cookies in the "*Set-Cookie*" response headers.
45
46
The register of letters for the flags doesn't matter as it will be converted to the correct value. The order of cookie declaration among multiple directives doesn't matter too.
46
47
It is possible to set a default value using symbol "*". In this case flags will be added to the all cookies if no other value for them is overriden.
47
48
@@ -51,7 +52,7 @@ It is possible to set a default value using symbol "*". In this case flags will
0 commit comments