테스트 사이트 - 개발 중인 베타 버전입니다

클라우드플레어 캡차를 적용했는데 에러가 납니다

레이첼AW 8개월 전 조회 2,319

https://sir.kr/g5_plugin/12649">플러그인 자료실에 있는 클라우드플레어 캡차를 적용했는데

개발자 도구에서 에러가 납니다

 

Refused to run the JavaScript URL because it violates the following Content Security Policy directive: "script-src 'nonce-oPxqyUon4UIYo669' 'unsafe-eval'". Either the 'unsafe-inline' keyword, a hash ('sha256-...'), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.

 

어떻게 해결하나요?

 

http://sir.kr/data/editor/2502/1982722210_1740730855.5232.png" width="100%" />

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

웅푸
7개월 전

위 오류는 Content-Security-Policy 헤더를 설정하여 CSP를 구현해줘야한다라는 뜻이되므로, 정책에 따라서 웹 애플리케이션의 보안 요구 사항에 따라 맞추어야 한다라는 뜻이되겠습니다.

즉 script-src 를 통해 허용할 스크립트 출처를 지정해줘야 합니다.

하여

먼저 사이트키 시크릿키 올바른지 재확인해보시고, 그리고 클라우드 플레어에서 스크립트보호를 비활성해보시기 바랍니다.

 

로그인 후 평가할 수 있습니다

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인