본문 바로가기

Programming/Web

Mixed content: The page at '' was loaded over HTTPS

반응형

문제

작업 중인 사이트를 테스트 후 클라우드에 배포했는데 문제가 생겼다.

Mixed Content: The page at 'https://dotnetboom.site/' was loaded over HTTPS, but requested an insecure script 'http://code.jquery.com/jquery-latest.js'. 
This request has been blocked; the content must be served over HTTPS.

 

jquery로드하는 부분에서 오류 발생

https 사이트에서 http 사이트에 요청을 보낼 때 발생한다고 한다.

 

해결

html head 부분에 아래 내용 추가

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
반응형