Skip to content

Commit a663e9c

Browse files
elsmrimchairmanm
andauthored
Add docs for N8N_SAMESITE_COOKIE (#3046)
Co-authored-by: Justin Ellingwood <[email protected]>
1 parent a2fe450 commit a663e9c

File tree

1 file changed

+3
-2
lines changed
  • docs/hosting/configuration/environment-variables

1 file changed

+3
-2
lines changed

docs/hosting/configuration/environment-variables/security.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
#https://www.notion.so/n8n/Frontmatter-432c2b8dff1f43d4b1c8d20075510fe4
33
title: Security environment variables
4-
description: Configure authentication and environment variable access in self-hosted n8n instance.
4+
description: Configure authentication and environment variable access in self-hosted n8n instance.
55
contentType: reference
66
tags:
77
- environment variables
@@ -20,4 +20,5 @@ hide:
2020
| `N8N_RESTRICT_FILE_ACCESS_TO` | String | | Limits access to files in these directories. Provide multiple files as a colon-separated list ("`:`"). |
2121
| `N8N_BLOCK_FILE_ACCESS_TO_N8N_FILES` | Boolean | `true` | Set to `true` to block access to all files in the `.n8n` directory and user defined configuration files. |
2222
| `N8N_SECURITY_AUDIT_DAYS_ABANDONED_WORKFLOW` | Number | 90 | Number of days to consider a workflow abandoned if it's not executed. |
23-
| `N8N_SECURE_COOKIE` | Boolean | `true` | Ensures that cookies are only sent over HTTPS, enhancing security.|
23+
| `N8N_SECURE_COOKIE` | Boolean | `true` | Ensures that cookies are only sent over HTTPS, enhancing security.|
24+
| `N8N_SAMESITE_COOKIE` | Enum string: `strict`, `lax`, `none` | `lax` | Controls cross-site cookie behavior ([learn more](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie/SameSite)):<ul><li>`strict`: Sent only for first-party requests.</li><li>`lax` (default): Sent with top-level navigation requests.</li><li>`none`: Sent in all contexts (requires HTTPS).</li></ul> |

0 commit comments

Comments
 (0)