diff options
Diffstat (limited to 'nginx/nginx.conf')
| -rw-r--r-- | nginx/nginx.conf | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/nginx/nginx.conf b/nginx/nginx.conf index b85a4c95..674b2e8d 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -77,13 +77,17 @@ http { /index.html ", </phone.png>; rel=preload; as=image"; } + map $http_cookie $clear_legacy_push_cookie { + ~__Host-preload= "__Host-preload=; HttpOnly; Secure; SameSite=Lax; Path=/; Max-Age=0"; + } + map $http_cookie $nopush { - ~__Host-preload=1 1; + ~__Host-push=1 1; default 0; } map $nopush $push_cookie { - 0 "__Host-preload=1; HttpOnly; Secure; SameSite=Lax; Path=/"; + 0 "__Host-push=1; HttpOnly; Secure; SameSite=Lax; Path=/"; } map $nopush $push_stylesheet { |
