본문 바로가기
개발공부/개발하다_발견함

Mixed Content: This request has been blocked;

by 맙소사 2022. 3. 18.

Mixed Content: The page at 'https://어쩌구저쩌구주소'  was loaded over HTTPS, but requested an insecure script 'http://www.open.go.kr/api/openAPI.down?apiKey=어쩌궁저쩌구키'. This request has been blocked; the content must be served over HTTPS.

 

이런 메시지가 뜨는 이유는 https 와 http 사이의 교환이 안되기 때문임! 보안때문인듯?

그래서 요청 스크립트를 https로 바꿔줬더니 다행히 작동이 된다!

콘솔 안내문이 엄청 친절해서 다행이지모야

 

그리고 더해서

The Content Security Policy 'upgrade-insecure-requests' was delivered via a <meta> element outside the document's <head>, which is disallowed. The policy has been ignored.

이 친구는 meta 태그를 엉뚱한곳에 갖다 놓으면 발생하는 친구.

 

 

댓글