From 45a76ff97ff19eadfdcdb1908270e65878d294ef Mon Sep 17 00:00:00 2001 From: Inian Parameshwaran Date: Tue, 16 Feb 2021 17:21:07 +0530 Subject: [PATCH] try disabling hsts hsts does a 307 which does not preserve referrer header. If this is disabled, vercel will send a 308 which will preserve the referrer header (i think) --- vercel-local.json | 11 +++++++++++ vercel.json | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/vercel-local.json b/vercel-local.json index a1f26d1fde5..44ff9ea2d07 100644 --- a/vercel-local.json +++ b/vercel-local.json @@ -1,4 +1,15 @@ { + "headers": [ + { + "source": "/(.*)", + "headers": [ + { + "key": "Strict-Transport-Security", + "value": "" + } + ] + } + ], "rewrites": [ { "source": "/new/:match*", "destination": "http://localhost:3000/new/:match*" }, { "source": "/", "destination": "http://localhost:3000/new" }, diff --git a/vercel.json b/vercel.json index d11c37aa981..2e7c4dbc37f 100644 --- a/vercel.json +++ b/vercel.json @@ -1,4 +1,15 @@ { + "headers": [ + { + "source": "/(.*)", + "headers": [ + { + "key": "Strict-Transport-Security", + "value": "" + } + ] + } + ], "rewrites": [ { "source": "/new/:match*", "destination": "https://www.supabase.vercel.app/new/:match*" }, { "source": "/", "destination": "https://www.supabase.vercel.app/new" },