상세 컨텐츠

본문 제목

[ajax를 위한] CROS (Cross-origin resource sharing) 구분

카테고리 없음

by 겸둥선짱 2020. 8. 4. 10:40

본문

프로토콜이 달라서 origin이 다름

http://localhost:80

https://localhost:80


서버명(도메인)이 달라서 origin이 다름

http://localhost:80

http://lsy.com:80 

 


포트번호가 달라서 origin이 다름

http://localhost:80

http://localhost:8080


CORS 정책에 의해 ajax로 다른 사이트를 가져올 수 없음

ajax를 가져온다는 것은 가공할 수 있다는 상태를 의미한다.