개발 Q&A

제목 CORS 질문있습니다.
카테고리 PHP
글쓴이 손씨가문 작성시각 2018/05/17 14:16:22
댓글 : 1 추천 : 0 스크랩 : 0 조회수 : 12258   RSS

브라우저 보안이 많이 강화되었네요..

 

has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin is therefore not allowed access. The response had HTTP status code 404.

Refused to display 'https://www.youtube.com/watch?v=hnXA_KUZwkc&feature=youtu.be&rel=0&showinfo=0?autoplay=0' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

이렇게 현재 Youtube 영상을 불러오는 과정에서  오류가나네요

header('Access-Control-Allow-Origin: *');

 

해당 헤더를 추가해도 해결이 되지 않는데,

혹시 해결 방안이 있을까요?

 

 

 다음글 maria db 에러 핸들링 문의 (2)
 이전글 재고 처리 시 동기화에 대해 질문합니다. (2)