mirror of
https://github.com/theoleuthardt/werkzeugkiste.git
synced 2026-06-13 09:37:53 +00:00
fix: configure docker compose and fastify cors with .env file for local and production environment
This commit is contained in:
parent
4943846db7
commit
d75f0c4626
5 changed files with 23 additions and 13 deletions
|
|
@ -14,7 +14,7 @@ import { removeBG } from "./src/routes/removebg.route";
|
|||
const app = Fastify({ logger: true });
|
||||
|
||||
app.register(cors, {
|
||||
origin: "*",
|
||||
origin: process.env.CORS_ALLOWED_ORIGIN || "*",
|
||||
exposedHeaders: "Content-Disposition",
|
||||
methods: "POST",
|
||||
allowedHeaders: "Content-Type",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue