Mixed content 문제

Joohyung Park·2024년 4월 10일

버그

목록 보기
12/12

문제

프로젝트 도중, GitHub Pages로 생성된 부트스트랩 웹과 장고 간의 통신을 하는 도중 다음과 같은 경고가 발생했다.

Mixed Content: The page at '<URL>' was loaded over HTTPS, 
but requested an insecure element '<URL>'. This request was not upgraded to HTTPS because its URL's host is an IP address.

해결

HTML 파일 헤더에 다음과 같은 문장을 설정하여 해결하였다.

<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
profile
익숙해지기 위해 기록합니다

0개의 댓글