refused to load the stylesheet ' url ' because it violates the following content security policy

    Refused to load the stylesheet '<URL>' because it violates the following Content Security Policy directive: "default-src <URL>". Note that 'style-src-elem' was not explicitly set, so 'default-src' is used as a fallback.

    install.html:1 Refused to load the script 'http://localhost:80/js/jquery-1.11.3.min.js' because it violates the following Content Security Policy directive: "default-src http://localhost/test.html". Note that 'script-src-elem' was not explicitly set, so 'default-src' is used as a fallback.

    Refused to load the image '<URL>' because it violates the following Content Security Policy directive: "default-src <URL>". Note that 'img-src' was not explicitly set, so 'default-src' is used as a fallback.

     

    위와 같은 에러 해결 방법

    <meta http-equiv="Content-Security-policy" content="default-src https://localhost/test.html; child-src 'none'; object-src 'none'"></meta>

    <meta http-equiv="X-Content-Type-Options" content="nosniff"></meta>

    <meta http-equiv="X-XSS-Protection" content="1"></meta>

     

     

    븃단이나 필터(header)에 위와 같은 코드가 들어 가 있을 경우 크롬에선 보안정책이 변경 되었기 때문에

    아래와 같이 변경을 해주어야 한다.

    <meta http-equiv="X-UA-Compatible" content="IE=edge">

     

     

     

     

    아래에러 위 해결 방법

     

     

    댓글

    Designed by JB FACTORY