//-----------------------------------------------------------------------------
- 에러 메시지
Refused to load the script because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
- 해결 방법
https://stackoverflow.com/questions/31211359/refused-to-load-the-script-because-it-violates-the-following-content-security-po
<meta http-equiv="Content-Security-Policy" content="default-src * self blob: data: gap:; style-src * self 'unsafe-inline' blob: data: gap:; script-src * 'self' 'unsafe-eval' 'unsafe-inline' blob: data: gap:; object-src * 'self' blob: data: gap:; img-src * self 'unsafe-inline' blob: data: gap:; connect-src self * 'unsafe-inline' blob: data: gap:; frame-src * self blob: data: gap:;">
//-----------------------------------------------------------------------------
- 에러 메시지
Access to script at from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, chrome-untrusted, https.
- 해결방법
파일을 바로 브라우저로 읽지 말고 웹서버를 통한 url로 로드한다
'Code > Web' 카테고리의 다른 글
GoAccess(웹서버 로그 분석) GeoLocation 지원 설치 방법 (0) | 2022.11.23 |
---|---|
Best CSS Frameworks 2022(바로 적용) (0) | 2022.07.31 |
[HTML] svg 태그 (0) | 2022.07.14 |
[HTML] canvas 태그 (0) | 2022.07.14 |
CloudFlare 로 URL 주소 자동 포워딩 하는 방법 (0) | 2022.05.19 |