fix: 🐛 Allow all headers during CORS

This commit is contained in:
Jesse Wierzbinski 2024-08-19 21:56:14 +02:00 committed by April John
parent 76237a9e1e
commit c588dd1c90

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,
}), }),