의견 보내기
CORS를 지원하는 커스텀 nginx.conf 만들기
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
CORS 지원 기능을 ESP에 추가 의 설명처럼 CORS를 지원하도록 Extensible Service Proxy(ESP) 를 구성할 수 있습니다.
ESP 옵션이 애플리케이션에 필요한 CORS 지원 기능을 제공하지 않으면 CORS 옵션을 ESP의 nginx.conf
구성 파일에 추가하면 됩니다.
CORS 옵션을 nginx.conf
에 추가
CORS 옵션을 추가하려면 다음 단계를 따르세요.
Cloud Endpoints에 필요한 구성이 포함된 nginx.conf
파일로 시작합니다. 샘플 nginx.conf
로 시작하거나, 이미 ESP를 배포한 경우에는 SSH를 통해 ESP 컨테이너에 연결한 후 /etc/nginx/endpoints/
디렉터리에서 nginx.conf
파일을 복사할 수 있습니다.
애플리케이션에 필요한 CORS 옵션을 nginx.conf
에 추가합니다. NGINX의 CORS 예시를 시작점으로 사용할 수 있습니다.
커스텀 nginx.conf
파일 경로와 함께 --nginx_config
옵션을 사용하여 ESP를 시작합니다.
다음 단계
의견 보내기
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스 에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스 에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책 을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2023-12-12(UTC)
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]
의견을 전달하고 싶나요?