fix: send headers to error rewrites

This commit is contained in:
Michael Zetterberg
2024-08-23 09:00:08 +02:00
parent 159114a082
commit efd2e1730c
5 changed files with 42 additions and 33 deletions

View File

@@ -55,6 +55,9 @@ export const middleware: NextMiddleware = async (request) => {
headers: {
"Set-Cookie": `webviewToken=0; Max-Age=0; Secure; HttpOnly; Path=/; SameSite=Strict;`,
},
request: {
headers,
},
}
)
}