Added Cors Hosts
This commit is contained in:
@@ -7,6 +7,8 @@ export default fp(async (server: FastifyInstance) => {
|
|||||||
origin: [
|
origin: [
|
||||||
"http://localhost:3000", // dein Nuxt-Frontend
|
"http://localhost:3000", // dein Nuxt-Frontend
|
||||||
"http://127.0.0.1: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"],
|
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
|
||||||
allowedHeaders: ["Content-Type", "Authorization", "Context"],
|
allowedHeaders: ["Content-Type", "Authorization", "Context"],
|
||||||
|
|||||||
Reference in New Issue
Block a user