• Euryad

    (@euryad)


    Hi,
    I encounter an issue about the installation that I never encountered since I make wordpress installations.
    With google chrome, I have this error in the console :
    Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-nN05YLBF6L1msZE1lDLhBBTTmgFZFNtNWAhxM4CNQ2g='), or a nonce ('nonce-...') is required to enable inline execution.
    Do you know where it can come from? Is this a known problem? How to solve it?
    Regards,
    EM

    Ps : I don’t have this error in local machine with wampserver.

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    It’s not a problem I’ve encountered in installing WP. Something is sending a Content-Security-Policy header that causes the browser to behave in a more secure manner. Use your browser’s network developer tool to examine responding headers from various requested resources. The resource responding with this header is the cause.

    Background information: https://www.html5rocks.com/en/tutorials/security/content-security-policy/

Viewing 1 replies (of 1 total)

The topic ‘Refused to execute inline script…’ is closed to new replies.