Forum Discussion
Enable scripts in SharePoint
Hi AkashHolmetrics ,
I believe you've done everything is outlined https://docs.microsoft.com/en-us/sharepoint/allow-or-prevent-custom-script, perhaps, there might be just a missed tiny tick box somewhere.
Can you tell us, please, what is happening when you try to run scripts? Are there any logs available?
- AkashHolmetricsJun 12, 2020Copper Contributor
Hi olegmelnikov
Thanks for reply, Yes I have done as suggested in the link, but still I am getting this error while executing script page, Error
" Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self' ............... 'unsafe-eval' . Either the 'unsafe-inline' keyword, a hash ('sha256-..........'), or a nonce ('nonce-...') is required to enable inline execution.- olegmelnikovJun 13, 2020Brass Contributor
hi AkashHolmetrics,
I am not a developer, but it looks like there is nothing to do with SharePoint, the script starts, but it fails because of the error.
https://content-security-policy.com/, I found some clues about source values for *-src directives.
https://stackoverflow.com/questions/30280370/how-does-content-security-policy-work, I found pretty good guide 'How Content Security Policy works'.
Please, let me know, if it helps.