Having trouble with my website's JavaScript. The dropdown box in Bootstrap isn't working on the main page, but works fine in a sub-directory. My CSP header is:
script-src 'self' //ajax.cloudflare.com
According to the CSP documentation, spaces allow for more than one entry in a directive like "script-src"
I'm confused why it's not working on the main page. Any help would be appreciated.
Error message:
index.php:10 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' //ajax.cloudflare.com". Need the 'unsafe-inline' keyword, hash ('sha256-safag'), or nonce to enable inline execution.