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
I have enabled Content Security Policy in my Angular project and set the value of gantt.config.csp to true, but it still prompts an error message
dhtmlxgantt.js:20 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' 'nonce-randomNonceGoesHere'". Either the 'unsafe-inline' keyword, a hash ('sha256-V2Nqg6DDKwrCjdMqvumaraU8t+T2Dax9wA2sBV/y9Tw='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.
The text was updated successfully, but these errors were encountered:
Hello.
Currently, the gantt.config.csp configuration does not affect whether Gantt applies inline styles or not. Unfortunately, this can’t be changed at the moment.
To use Gantt in your project with the current CSP restrictions, you would need to configure your CSP policy to allow exceptions for Gantt.
I have enabled Content Security Policy in my Angular project and set the value of gantt.config.csp to true, but it still prompts an error message
dhtmlxgantt.js:20 Refused to apply inline style because it violates the following Content Security Policy directive: "style-src 'self' 'nonce-randomNonceGoesHere'". Either the 'unsafe-inline' keyword, a hash ('sha256-V2Nqg6DDKwrCjdMqvumaraU8t+T2Dax9wA2sBV/y9Tw='), or a nonce ('nonce-...') is required to enable inline execution. Note that hashes do not apply to event handlers, style attributes and javascript: navigations unless the 'unsafe-hashes' keyword is present.
The text was updated successfully, but these errors were encountered: