From fa369f7b818a655ea3ff7f765b23406d859ff60e Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 6 Jan 2026 11:41:34 +0100 Subject: [PATCH] Added Public Pin Header to Cors --- src/plugins/cors.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/cors.ts b/src/plugins/cors.ts index a140d1e..e62e9c3 100644 --- a/src/plugins/cors.ts +++ b/src/plugins/cors.ts @@ -15,7 +15,7 @@ export default fp(async (server: FastifyInstance) => { "capacitor://localhost", // dein Nuxt-Frontend ], methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"], - allowedHeaders: ["Content-Type", "Authorization", "Context"], + allowedHeaders: ["Content-Type", "Authorization", "Context", "X-Public-Pin"], exposedHeaders: ["Authorization", "Content-Disposition", "Content-Type", "Content-Length"], // optional, falls du ihn auch auslesen willst credentials: true, // wichtig, falls du Cookies nutzt });