Remove credentials: true

This commit is contained in:
Owen Schwartz 2024-12-26 11:27:48 -05:00
parent 29b1716ab0
commit 941ac56272

View file

@ -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));