You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We wanted to host the generated documentation on a server which enforced a strict content security policy. But since there is inline scripts generated it's not possible without lowering security and setting "script-src: 'unsafe-inline'" It would be nice if it worked with "script-src: 'self'".
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-i7TAIM1h9AgLYOpqhzs736xI8kU3UyZ/RV51LpY8Hno='), or a nonce ('nonce-...') is required to enable inline execution.
Suggest a Fix
Do not render inline script-tags
The text was updated successfully, but these errors were encountered:
Overview of the issue
We wanted to host the generated documentation on a server which enforced a strict content security policy. But since there is inline scripts generated it's not possible without lowering security and setting "script-src: 'unsafe-inline'" It would be nice if it worked with "script-src: 'self'".
Operating System, Node.js, npm, compodoc version(s)
Linux
Compodoc 1.1.23
Compodoc installed globally or locally ?
Installed locally
If possible your terminal logs before the error
Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-i7TAIM1h9AgLYOpqhzs736xI8kU3UyZ/RV51LpY8Hno='), or a nonce ('nonce-...') is required to enable inline execution.
Suggest a Fix
Do not render inline script-tags
The text was updated successfully, but these errors were encountered: