본문 바로가기
web 일반

해결 방법 - No 'Access-Control-Allow-Origin' header is present on the requested resource.

by 문파워 2020. 4. 11.

ajax url 호출 시 발생하는 에러 

No 'Access-Control-Allow-Origin' header is present on the requested resource

 

 

출처: https://kimyhcj.tistory.com/263 [기억과 기록]

 

해결 방법 - No 'Access-Control-Allow-Origin' header is present on the requested resource.

JavaScript 엔진 표준 스펙에 있는 동일 출처 정책(Same-Origin Policy)이라는 보안규칙으로 인해 발생한다. (JavaScript 로 다른 웹페이지에 접근할 때는 같은 출처 - 프로토콜, 호스트명, 포트 - 의 페이지에만..

kimyhcj.tistory.com

 

댓글