Merged in fix/my-stay-webview (pull request #2169)
fix: webviews - my stay * Test
This commit is contained in:
@@ -135,7 +135,14 @@ async function handleWebviewRewrite({
|
||||
const path = nextUrl.pathname
|
||||
|
||||
if (myStayWebviews.includes(path)) {
|
||||
return NextResponse.next({ request: { headers } })
|
||||
return NextResponse.next({
|
||||
request: { headers },
|
||||
...(setCookie && {
|
||||
headers: {
|
||||
"Set-Cookie": `webviewToken=${decryptedData}; Secure; HttpOnly; Path=/; SameSite=Strict;`,
|
||||
},
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
||||
const pathNameWithoutLang = path.replace(`/${lang}/webview`, "")
|
||||
|
||||
Reference in New Issue
Block a user