20220520 TIL

Jun Young·2022년 5월 20일
  • https사이트에서 비동기로 요청한 api주소가 http일때 Mixed content 에러 발생.
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">

index.html head에 추가해준다.
https://wellsw.tistory.com/34 참조

  • netlify 터미널로 설치시 yarn으로는 command not found 에러가 뜬다. 좀더 찾아보기로 하고 대신
npm i netlify-cli -g 

npm으로 설치 후 배포 진행. 웹사이트로 하는 방법도 있지만 이방법이 좀더 빠르고 편했다!

profile
개발자라고싶다

0개의 댓글