• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

lite-server를 실행했는데

20.04.04 18:42 작성 조회수 102

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

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