Getting "Refused to load the script" when try to load comments. #381
-
Anyone can help me to get rid of this error. This template already using this , but don't know why its giving the error. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I solved it like this and this works. But I don't know if this is the right way to do it. const ContentSecurityPolicy = `
default-src 'self';
script-src 'self' 'unsafe-eval' 'unsafe-inline' giscus.app scripts.simpleanalyticscdn.com www.googletagmanager.com utteranc.es;
style-src 'self' 'unsafe-inline' *.googleapis.com cdn.jsdelivr.net;
img-src * blob: data:;
media-src 'none';
connect-src *;
font-src 'self' fonts.gstatic.com cdn.jsdelivr.net;
frame-src giscus.app
`; |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, both of you Guyz. @tszhong0411 & @AlexanderZeilmann |
Beta Was this translation helpful? Give feedback.
I solved it like this and this works. But I don't know if this is the right way to do it.