Added Cors Hosts

This commit is contained in:
2025-09-13 16:23:53 +02:00
parent 8f7ce314fb
commit 91a62f88d2

View File

@@ -7,6 +7,8 @@ export default fp(async (server: FastifyInstance) => {
origin: [
"http://localhost:3000", // dein Nuxt-Frontend
"http://127.0.0.1:3000", // dein Nuxt-Frontend
"https://beta.fedeo.de", // dein Nuxt-Frontend
"https://app.fedeo.de", // dein Nuxt-Frontend
],
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allowedHeaders: ["Content-Type", "Authorization", "Context"],