Skip to content

Commit ab78fc3

Browse files
committed
update cors
1 parent 69f9a73 commit ab78fc3

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/app.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,7 @@ class App {
1919

2020
private initializeMiddlewares() {
2121
this.app.use(express.json());
22-
this.app.use(
23-
cors({
24-
origin: env.FRONTEND_URL,
25-
credentials: true
26-
})
27-
);
22+
this.app.use(cors({ origin: env.FRONTEND_URL, credentials: true }));
2823
this.app.use(cookieParser());
2924
}
3025

0 commit comments

Comments
 (0)