Mohammad Sarwar Posted February 20 Share Posted February 20 Dear All, currently we applied Content Security Policy (CSP) on our product and now facing with HTML 5 JS Chart, where CSP blocking the eval methods in tdgchart-min.js, I know the 'unsafe-eval' can solve this issue but I don't want use this, is there any newer version of tdgchart-min.js that is free of eval function? is there any solution for this. Thanks, Sarwar Link to comment Share on other sites More sharing options...
Solution Clayton Peacock Posted February 20 Solution Share Posted February 20 Hi Mohammad, We are using the below hope it works for you? <!-- Embed JSChart --> <script type="text/javascript" src="/ibi_apps/tdg/jschart/distribution/tdgchart-min.js"></script> Kind Regards, Clayton 4 Link to comment Share on other sites More sharing options...
Mohammad Sarwar Posted February 21 Author Share Posted February 21 Hi Clayton, thanks a lot for your solution! we using the modified version of this and we did some refactoring the eval function and this issue is solved. Link to comment Share on other sites More sharing options...
Clayton Peacock Posted February 21 Share Posted February 21 Hi Mohammad, My pleasure, glad solution is working. Kind Regards, Clayton Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now