Skip to content

Commit 79f091b

Browse files
authored
kl/scrum-121 Fix cors line in index.ts (#57)
1 parent 88a1b55 commit 79f091b

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

course-matrix/backend/src/index.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,7 @@ const HOST = "localhost";
2424
let server: Server;
2525
const swaggerDocs = swaggerjsdoc(swaggerOptions);
2626

27-
app.use(
28-
cors({
29-
origin: config.CLIENT_APP_URL,
30-
methods: ["POST"],
31-
credentials: true,
32-
allowedHeaders: ["Content-Type"],
33-
}),
34-
);
27+
app.use(cors({ origin: config.CLIENT_APP_URL, credentials: true }));
3528
app.use(express.json());
3629
app.use(cookieParser());
3730
app.use(express.urlencoded({ extended: true }));

0 commit comments

Comments
 (0)