fix(security): authorize site uploads and harden tokens, media and request identity
This commit is contained in:
1 parent
52f6d1491f
commit
8abfe352ef
70 files changed
+1609
-204
No files matched your search
@@ -1,8 +1,10 @@
|
||||
"use server";
|
||||
|
||||
import { cookies } from "next/headers";
|
||||
import { isSupportedLocale } from "@/i18n/locales";
|
||||
|
||||
export async function setLocaleCookie(code: string): Promise<void> {
|
||||
if (typeof code !== "string" || !isSupportedLocale(code)) return;
|
||||
const store = await cookies();
|
||||
store.set("NEXT_LOCALE", code, {
|
||||
path: "/",
|
||||
|
||||
Reference in new issue
Block a user