We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88a1b55 commit 79f091bCopy full SHA for 79f091b
course-matrix/backend/src/index.ts
@@ -24,14 +24,7 @@ const HOST = "localhost";
24
let server: Server;
25
const swaggerDocs = swaggerjsdoc(swaggerOptions);
26
27
-app.use(
28
- cors({
29
- origin: config.CLIENT_APP_URL,
30
- methods: ["POST"],
31
- credentials: true,
32
- allowedHeaders: ["Content-Type"],
33
- }),
34
-);
+app.use(cors({ origin: config.CLIENT_APP_URL, credentials: true }));
35
app.use(express.json());
36
app.use(cookieParser());
37
app.use(express.urlencoded({ extended: true }));
0 commit comments