Skip to content

Commit

Permalink
Config: cors 설정에 LOCAL_CLIENT_PATH 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
hwinkr committed Aug 12, 2023
1 parent caf4b60 commit 3f35e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middlewares/cors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { env } from 'process';

export const corsOptions = {
origin: env.CLIENT_PATH,
origin: [env.CLIENT_PATH, env.LOCAL_CLIENT_PATH],
method: ['GET', 'POST'],
allowedHeaders: ['content-Type', 'Authorization'],
};

0 comments on commit 3f35e6e

Please sign in to comment.