fix: 관리자 문서 미리보기 iframe X-Frame-Options 허용
/api/admin/documents/ 경로만 SAMEORIGIN으로 예외 처리하여 관리자 페이지에서 제안서/질문지 iframe 미리보기가 동작하도록 수정 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -26,6 +26,14 @@ const nextConfig: NextConfig = {
|
||||
},
|
||||
],
|
||||
},
|
||||
// 관리자 문서 API: iframe 미리보기 허용 (동일 출처만)
|
||||
{
|
||||
source: "/api/admin/documents/:path*",
|
||||
headers: [
|
||||
{ key: "Cache-Control", value: "no-store, max-age=0" },
|
||||
{ key: "X-Frame-Options", value: "SAMEORIGIN" },
|
||||
],
|
||||
},
|
||||
// API 엔드포인트: 캐시 금지 + CORS 차단
|
||||
{
|
||||
source: "/api/:path*",
|
||||
|
||||
Reference in New Issue
Block a user