CSP analysis of website shows errors with inline scripts
-
A recent analysis done to see which errors my site has, has thrown some inline script errors that could make sites vulnerable to cross-site scripting attacks.
For this plugin, the following errors were shown.
[Report Only] Refused to execute inline script because it violates the following Content Security Policy directive: "default-src 'self' fonts.googleapis.com maxcdn.bootstrapcdn.com fonts.gstatic.com". Either the 'unsafe-inline' keyword, a hash ('sha256-ru1OH2/x8HlfUUB/M4CIPU4sM04mReXxEN+aZ3CvWkg='), or a nonce ('nonce-...') is required to enable inline execution. Note also that 'script-src' was not explicitly set, so 'default-src' is used as a fallback.
with this being the source in the file.
<script type='text/javascript' id='cookieconsent-js-after'>
There are other similar errors but I would like to know if this issue has been raised with you before.The page I need help with: [log in to see the link]
The topic ‘CSP analysis of website shows errors with inline scripts’ is closed to new replies.