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 12ce8ff commit 6540ce9Copy full SHA for 6540ce9
src/app.ts
@@ -35,7 +35,10 @@ DB.init(); // DB 세팅
35
36
app.set("trust proxy", "loopback"); // 프록시 설정 배포 시 ON
37
app.use(morgan("dev")); // 개발용 로그 미들웨어
38
-app.use(cors()); // CORS 설정 미들웨어
+app.use(cors({
39
+ origin: process.env.ORIGIN ?? 'https://circles.hyunwoo.dev',
40
+ credentials: true
41
+})); // CORS 설정 미들웨어
42
app.use(helmet()); // 보안 미들웨어
43
app.use(compression()); // 데이터 압축 미들웨어
44
app.use(PassportJWTAuth.getInitialize()); // Passport 기본 세팅 미들웨어
0 commit comments