Added Public Pin Header to Cors

This commit is contained in:
2026-01-06 11:41:34 +01:00
parent 5485d2c0cc
commit fa369f7b81

View File

@@ -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
});