amjad.aziz

CSP header conflicts with fusion chart client side export

Recommended Posts

Hi Experts,

We are using fusion charts in our product. We are exporting chart in pdf format at client side. Our application is secured through CSP headers. We are facing some issues while exporting chart in pdf format when

- Our website is launched in another website using iFrame.

- Export is not working for firefox only while in Chrome and IE it works fine.

Following exception is being thrown at console:

Content Security Policy: The page’s settings blocked the loading of a resource at data:application/pdf;base64,JVBERi0xLjcK... (“default-src self  ...”).

Any suggestion will be appreciated.

Thanks,

Amjad Aziz

Share this post


Link to post
Share on other sites

Hi,

We have identified the issue as browser issue though we have logged an improvement request for it internally and will keep you posted about the same if any workaround is available.

Share this post


Link to post
Share on other sites

Can someone please help me on display this chart on my browser it's not displaying.

reference URL : https://www.fusioncharts.com/jsp-charts/views/ex4.php

Database : 

+-------+------------+
| name  | population |
+-------+------------+
| China |   20000000 |
| India |   15000000 |
| US    |    2800000 |
+-------+------------+



Please find relevant files here..

FusionChart.zip

Edited by Ajay Singh Meena

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now