Heroku 배포 오류: Mixed Content: The page at 'https://...' 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

안소민·2021년 8월 17일
0

Heroku로 배포를 했더니, 이전에는 생기지 않았던 오류가 생겼다. console창을 열어보니, 제목과 같은 오류가 생긴것이다. jquery가 적용이 안된다는데, 이상하다... 구글링 결과, 한 블로그에 따르면

암호화된 HTTPS 기반의 사이트에서 암호화되지 않은 HTTP 사이트에 요청을 보내서 Mixed content 에러가 발생한 것입니다.

라고 한다. 그래서 다음과 같은

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

를 html head 태그에 넣어줘야한다.

출처: https://wellsw.tistory.com/34

profile
개발자가 되고픈

0개의 댓글