Skip to content

Plotly Chart doesn't render. Shortcodes #461

Answered by h-enk
Alrodr asked this question in Support
Discussion options

You must be logged in to vote

If you trust the external plotly script, you could add it to the Content-Security-Policy in ./layouts/index.headers: script-src 'self' https://cdn.plot.ly/plotly-latest.min.js;

Note 1) Laboratory could help you with remaining CSP issues:

Laboratory is an experimental Firefox extension that helps you generate a Content Security Policy (CSP) header for your website.

Source: Content Security Policy

Note 2) Doks uses npm for central dependency management. You could also install the Plotly npm package (recommended method)

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Alrodr
Comment options

@amberalpha
Comment options

Answer selected by Alrodr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants