클라우드플레어 캡차를 적용했는데 에러가 납니다
관련링크
본문
플러그인 자료실에 있는 클라우드플레어 캡차를 적용했는데
개발자 도구에서 에러가 납니다
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.
어떻게 해결하나요?
답변 1
위 오류는 Content-Security-Policy 헤더를 설정하여 CSP를 구현해줘야한다라는 뜻이되므로, 정책에 따라서 웹 애플리케이션의 보안 요구 사항에 따라 맞추어야 한다라는 뜻이되겠습니다.
즉 script-src 를 통해 허용할 스크립트 출처를 지정해줘야 합니다.
하여
먼저 사이트키 시크릿키 올바른지 재확인해보시고, 그리고 클라우드 플레어에서 스크립트보호를 비활성해보시기 바랍니다.
답변을 작성하시기 전에 로그인 해주세요.