CSP violation using Angular Viewer when report contain graphics

Stimulsoft Reports.ANGULAR discussion
Post Reply
victorscapin
Posts: 9
Joined: Wed Apr 05, 2017 2:41 pm

CSP violation using Angular Viewer when report contain graphics

Post by victorscapin »

Hello,

I'm using Stimulsoft Viewer for Angular, and i'm having issues when the report contains graphics due to CSP rules.
My CSP rule is a simple script-src 'self'.

Graphic not showing data:
report without unsafe-inline.png
report without unsafe-inline.png (62.83 KiB) Viewed 1063 times
Console Error:
csp violation.png
csp violation.png (41.75 KiB) Viewed 1063 times

When i add 'unsafe-inline', it's fine:
report with unsafe-inline.png
report with unsafe-inline.png (77.52 KiB) Viewed 1063 times


It's not a good practice to allow unsafe-inline in any html application. Is there a workaround or a fix to this issue?

Thanks
Vadim
Posts: 385
Joined: Tue Apr 23, 2013 11:23 am

Re: CSP violation using Angular Viewer when report contain graphics

Post by Vadim »

Hello

From version 2024.4.1 you can use 'nonce-stichartanimation' to allow chart animation script
victorscapin
Posts: 9
Joined: Wed Apr 05, 2017 2:41 pm

Re: CSP violation using Angular Viewer when report contain graphics

Post by victorscapin »

Hi Vadim

I will try that on next release. Thanks
Lech Kulikowski
Posts: 6651
Joined: Tue Mar 20, 2018 5:34 am

Re: CSP violation using Angular Viewer when report contain graphics

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply