본문 바로가기
WWWEB/HTML

https&http Mixed content 문제 오류 해결은 meta태그로

by 미니토이 2023. 1. 6.

콘솔에서 Mixed Content 빨갛게 오류표기된 것을 발견했다.

 

 

 

Mixed Content: The page at '{ ... }' was loaded over HTTPS, but requested an insecure script ' ... '. This request has been blocked; the content must be served over HTTPS.

 

 

 

번역

뭐라고 하는지 번역기를 돌려본다.

https를 써서 파일을 제공하라는 의미~

 

구글이 있어서 영어 공부를 안 해도 괜찮다고 해본다... ㅋ

 

 

 

 

 

해결법

이 문제를 해결하기 위해서는 <head>에 아래 <meta />를 넣어주면 간단히 해결된다.

 

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

 

 

 

* 참고 url

 

https://stackoverflow.com/questions/35178135/how-to-fix-insecure-content-was-loaded-over-https-but-requested-an-insecure-re

 

How to fix "insecure content was loaded over HTTPS, but requested an insecure resource"

This URL: https://slowapi.com I can't find the insecure content and the Chrome keeps complaining, Any ideas?

stackoverflow.com

 

728x90
반응형

'WWWEB > HTML' 카테고리의 다른 글

picture 태그와 figure 태그 차이점?  (0) 2023.05.08
W3C HTML5 컨퍼런스 자료  (0) 2022.11.25
svg path 따라다니는 글자  (0) 2022.06.16
viewport  (0) 2015.04.03
원(\) 엔티티코드  (0) 2015.03.31

댓글