mirror of
https://github.com/fosrl/pangolin.git
synced 2025-05-12 21:30:35 +01:00
Remove credentials: true
This commit is contained in:
parent
d75222626e
commit
7d615d00d8
1 changed files with 1 additions and 2 deletions
|
@ -33,8 +33,7 @@ export function createApiServer() {
|
|||
const corsOptions = {
|
||||
origin: config.app.base_url,
|
||||
methods: ["GET", "POST", "PUT", "DELETE", "PATCH"],
|
||||
allowedHeaders: ["Content-Type", "X-CSRF-Token"],
|
||||
credentials: true
|
||||
allowedHeaders: ["Content-Type", "X-CSRF-Token"]
|
||||
};
|
||||
|
||||
apiServer.use(cors(corsOptions));
|
||||
|
|
Loading…
Reference in a new issue