• Resolved Sonjoe

    (@sonjoe)


    Hi, Thank you for great plugin.

    After installation and activation of the plugin i can’t log in anymore to WP admin. I am using WP 5.9. Inspect element gave me this (below). After adding the jquery.com domain to Always Allow list, the login to WP Admin works. It is necessary this setup? Thank you.

    Refused to load the script 'https://code.jquery.com/jquery-1.8.2.js?ver=5.9' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-inline' 'unsafe-eval' https://www.recaptcha.net/ https://www.gstatic.com/ https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/ https://*.google.com/ https://*.google.sk/". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback. main.js?ver=5.9:1 Uncaught ReferenceError: jQuery is not defined at main.js?ver=5.9:1:1

Viewing 1 replies (of 1 total)
  • Plugin Author Johan Jonk Stenström

    (@jonkastonka)

    Yes, adding https://code.jquery.com/ to WP Admin > Settings > Cookies and Content Security Policy > Domains > Always allowed > Scripts is the right way to go you you have that setup. Otherwise you can host the jQuery-script locally instead and get rid of the problem that way.

Viewing 1 replies (of 1 total)
  • The topic ‘Can’t log in to WP admin’ is closed to new replies.