This commit is contained in:
Lukian LEIZOUR 2024-06-04 15:10:18 +02:00
parent 7ffa46cb5d
commit e07063ccc3

View file

@ -13,7 +13,7 @@ const port = config.port || 3000;
app.use(express.json());
app.use(cookieParser());
app.use(cors({
origin: "https://joclud.leizour.fr",
origin: ["https://joclud.leizour.fr", "http://localhost:5173"],
methods: ["GET", "POST", "PUT", "DELETE", "OPTIONS"],
allowedHeaders: ["Content-Type", "Authorization"]
}));