mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
fix: 🐛 Allow all headers during CORS
This commit is contained in:
parent
76237a9e1e
commit
c588dd1c90
1
app.ts
1
app.ts
|
|
@ -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,
|
||||||
}),
|
}),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue