fix: 🐛 Allow all headers during CORS

This commit is contained in:
Jesse Wierzbinski 2024-08-19 21:56:14 +02:00
parent 4d98034a79
commit 3912314a83
No known key found for this signature in database

1
app.ts
View file

@ -76,7 +76,6 @@ export const appFactory = async () => {
app.use( app.use(
cors({ cors({
origin: "*", origin: "*",
allowHeaders: ["Content-Type", "Authorization"],
allowMethods: ["GET", "POST", "PUT", "PATCH", "DELETE"], allowMethods: ["GET", "POST", "PUT", "PATCH", "DELETE"],
credentials: true, credentials: true,
}), }),