This commit is contained in:
2025-09-02 18:47:44 +02:00
parent 97a095b422
commit 7c4272ffe9
8 changed files with 319 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ export default fp(async (server: FastifyInstance) => {
],
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allowedHeaders: ["Content-Type", "Authorization", "Context"],
exposedHeaders: ["Authorization"], // optional, falls du ihn auch auslesen willst
exposedHeaders: ["Authorization", "Content-Disposition", "Content-Type", "Content-Length"], // optional, falls du ihn auch auslesen willst
credentials: true, // wichtig, falls du Cookies nutzt
});
});