인프런 영문 브랜드 로고
인프런 영문 브랜드 로고

인프런 커뮤니티 질문&답변

나날님의 프로필 이미지
나날

작성한 질문수

실습 UI 개발로 배워보는 순수 javascript 와 VueJS 개발

lite-server를 실행했는데

작성

·

133

0

lite server를 설치하는데 global로는 안되길래 lecture-vue 폴더 안에 local로 설치하고 실행했습니다.

package.json 파일 안에 

"scripts":{"dev":"lite-server"}

도 추가했고요..

그런데

Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-ThhI8UaSFEbbl6cISiZpnJ4Z44uNSq2tPKgyRTD3LyU='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.

라는 에러가 떴습니다.

왜그런걸까요ㅜㅜ?

답변 1

0

김정환님의 프로필 이미지
김정환
지식공유자

에러메세지를 봐도 잘 모르겠요. 안되는 버전의 코드를 깃헙으로 올려주실 수 있나요? 그럼 좀더 원인 찾기가 수월할것 같아요.

나날님의 프로필 이미지
나날

작성한 질문수

질문하기