Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow strict bundle via CDN. #237

Closed
ahjahjpulaj opened this issue Jun 13, 2023 · 1 comment
Closed

Allow strict bundle via CDN. #237

ahjahjpulaj opened this issue Jun 13, 2023 · 1 comment

Comments

@ahjahjpulaj
Copy link

Hi,
I am having issues with Content-Security-Policy using plotly via CDN, because the bundle need "unsafe-eval" policy.
it would be useful to be able to use the strict version of the bundle.
e.g
PlotlyViaCDNModule.setPlotlyVersion("strict-2.24.1")
allowing in PlotlyViaCDNModule also the "strict" keyword
const isOk = version === 'latest' || /^\d\.\d{1,2}\.\d{1,2}$/.test(version) || /^strict-\d\.\d{1,2}\.\d{1,2}$/;

Thanks

@andrefarzat
Copy link
Collaborator

@ahjahjpulaj just published the version 5.1.1. with the change you requested 😸

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants