feat(frontend): use __Host prefix for token cookie
This commit is contained in:
parent
646c2694e1
commit
2b8e4c3e8d
8 changed files with 108 additions and 101 deletions
|
@ -1,10 +1,11 @@
|
|||
import { ActionFunction } from "@remix-run/node";
|
||||
import { writeCookie } from "~/lib/request.server";
|
||||
import { tokenCookieName } from "~/lib/utils";
|
||||
|
||||
export const action: ActionFunction = async () => {
|
||||
return new Response(null, {
|
||||
headers: {
|
||||
"Set-Cookie": writeCookie("pronounscc-token", "token", 0),
|
||||
"Set-Cookie": writeCookie(tokenCookieName, "token", 0),
|
||||
},
|
||||
status: 204,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue