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 3ab28fc commit a927daeCopy full SHA for a927dae
backend/api/index.ts
@@ -3,15 +3,15 @@ import { cors } from 'hono/cors'; // CORS 미들웨어 import
3
4
const app = new Hono().basePath('/api');
5
6
-// CORS 미들웨어 설정..
+// CORS 미들웨어 설정...
7
app.use(
8
'/*', // 하위의 모든 경로에 CORS 적용
9
cors({
10
// Vercel에 배포된 프론트엔드 URL을 허용
11
// 또는 개발 편의를 위해 일단 모든 출처를 허용할 수도 있습니다.
12
origin: [
13
'http://localhost:5173', // 로컬 개발용
14
- 'https://cherrycoder9-github-io-frontend.vercel.app/' // Vercel 배포용
+ 'https://cherrycoder9-github-io-frontend.vercel.app/' // Vercel 배포용
15
],
16
allowMethods: ['GET', 'POST', 'OPTIONS'], // 허용할 HTTP 메소드
17
allowHeaders: ['Content-Type', 'Authorization'], // 허용할 요청 헤더
0 commit comments