Skip to content

Commit 288f187

Browse files
authored
Merge pull request #76 from codeit-moving/release
release -> main CORS 테스트
2 parents ac6a8a6 + 5fba921 commit 288f187

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/app.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ import { imageCleanup } from "./schedules/images";
2424
const app = express();
2525

2626
//CORS 설정
27-
const allowedOrigins: string[] = ["http://localhost:3001"];
27+
const allowedOrigins: string[] = [
28+
"http://localhost:3001",
29+
"https://52.78.245.231.nip.io", // 백엔드 도메인도 허용
30+
];
2831
// CORS 설정
2932
const corsOptions: CorsOptions = {
3033
credentials: true,

0 commit comments

Comments
 (0)