fixes trail sorting && secure cookie
This commit is contained in:
@@ -65,7 +65,7 @@ export const handle: Handle = async ({ event, resolve }) => {
|
||||
// send back the default 'pb_auth' cookie to the client with the latest store state
|
||||
response.headers.set(
|
||||
'set-cookie',
|
||||
pb.authStore.exportToCookie({ httpOnly: false, secure: true })
|
||||
pb.authStore.exportToCookie({ httpOnly: false, secure: event.url.protocol === "https:" })
|
||||
)
|
||||
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user