By Karen Laksamana on Wednesday, 14 September 2022
Posted in Technical Issues
Replies 3
Likes 0
Views 1.3K
Votes 0
When trying to use the PDF block, set as a PDF viewer, the pdf is not displaying in the post preview. It's just a blank gray pdf container. I'm getting this error from the browser dev tools:

--
Refused to load the script 'https://healthcostinstitute.org/media/com_easyblog/pdfjs/build/pdf.js' because it violates the following Content Security Policy directive: "script-src 'none'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

viewer.html:1 Refused to load the script 'https://healthcostinstitute.org/media/com_easyblog/pdfjs/web/viewer.js' because it violates the following Content Security Policy directive: "script-src 'none'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

viewer.html:1 Refused to load the script 'https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194' because it violates the following Content Security Policy directive: "script-src 'none'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.
--

I don't have any sort of extension on the browser blocking Javascript. This seems to be a problem with the Content Security Policy Header. Can you help?
Hey there,

When I was trying to access your site, I am getting the following error:

403: Access Forbidden
Your location (MY) has been disallowed.


Also, can you provide us with your FTP access so that we can have a better check of it?

For your information, we are from Malaysia.
·
Wednesday, 14 September 2022 10:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Sorry, Malaysia has now been unblocked
·
Wednesday, 14 September 2022 19:08
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

Can you go to your .htaccess.admintools file and search for as shown in the screenshot https://monosnap.com/file/35tTvWS1khIo5c9z03QL2NprFpSnMU then remove '|js' and see how it goes?

If you do not prefer to do this OR the issue still persists, can you disable the "Disable client-side risky behavior in frontend static content" setting in the '.htaccess Maker' of your AdminTools and see how it goes?

If the issue still persists, can you provide us with your FTP access so that we can have a better check of it?
·
Thursday, 15 September 2022 18:59
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post