mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-11 18:38:15 +00:00
Remove credentials: true
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user