브라우저 보안이 많이 강화되었네요..
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: *');
해당 헤더를 추가해도 해결이 되지 않는데,
혹시 해결 방안이 있을까요?
에러 메세지에 답이 있습니다.
https://www.google.co.kr/search?ei=uxr9WofeJMmj8AXL0oWoDQ&q=+in+a+frame+because+it+set+%27X-Frame-Options%27+to+%27sameorigin%27.&oq=+in+a+frame+because+it+set+%27X-Frame-Options%27+to+%27sameorigin%27.&gs_l=psy-ab.3..0i7i30k1l4j0l2j0i7i30k1l4.11550.17575.0.18383.62.23.0.0.0.0.204.1911.0j11j1.12.0....0...1c.1.64.psy-ab..61.1.204....0.YaUKb_PotDs
게시판 이동합니다.