diff options
| author | Rohan Kumar <seirdy@seirdy.one> | 2022-07-30 16:37:08 -0700 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2022-08-25 23:15:08 -0400 |
| commit | d6fd0df002798ba1e9e03005c352019bb4d4e736 (patch) | |
| tree | ff43cd7ecb87c806d1c3f4a0cd06d0ae493d4115 /nginx/snippets/security-headers-base.conf | |
| parent | 9f74b756ec47fe332e6448777fd6e5958dd260dc (diff) | |
Add "Origin-Agent-Cluster" header
Hint to browsers that we prefer per-origin process isolation. This
disables certain unsafe features regarding cross-origin same-site
resource sharing.
https://web.dev/origin-agent-cluster/#limitations
Specification link:
https://html.spec.whatwg.org/multipage/origin.html#origin-keyed-agent-clusters
This is just a hint to browsers. Depending on resource availability,
they may or may not actually allocate a process. For this reason, it's
not a robust security feature although it is preferable.
This header needs to be active on all pages from an origin for it to
work.
Diffstat (limited to 'nginx/snippets/security-headers-base.conf')
| -rw-r--r-- | nginx/snippets/security-headers-base.conf | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nginx/snippets/security-headers-base.conf b/nginx/snippets/security-headers-base.conf index a7669ca4..8fe43c17 100644 --- a/nginx/snippets/security-headers-base.conf +++ b/nginx/snippets/security-headers-base.conf @@ -3,6 +3,7 @@ add_header X-Content-Type-Options "nosniff" always; add_header Referrer-Policy "no-referrer" always; add_header Cross-Origin-Opener-Policy "same-origin" always; add_header Cross-Origin-Embedder-Policy "require-corp" always; +add_header Origin-Agent-Cluster "?1" always; # obsolete when client system time is correct add_header Expect-CT "enforce, max-age=63072000" always; |
