Skip to content

Commit d5ab9a3

Browse files
author
Marcel Wagner
committed
Revert enabling CORS for preflight
1 parent 2d1bf65 commit d5ab9a3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/index.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,16 +33,6 @@ export function start(
3333

3434
const controller: Controller = new Controller(adapter, cache);
3535

36-
// Enabling CORS preflight across the board
37-
app.options(
38-
"*",
39-
cors({
40-
credentials: true,
41-
origin: true,
42-
allowedHeaders: "*",
43-
})
44-
);
45-
4636
app.get("/contacts", (req, res, next) =>
4737
controller.getContacts(req, res, next)
4838
);

0 commit comments

Comments
 (0)