highcharter icon indicating copy to clipboard operation
highcharter copied to clipboard

hc_tooltip sort=T causes error when deployed on Netlify

Open pensivedog opened this issue 3 years ago • 1 comments

I'm using highcharter with blogdown and everything works fine locally. But when deployed to Netlify, setting sort=T in hc_tooltip causes the following error, which prevents the chart from rendering:

Uncaught EvalError: Refused to evaluate a string as JavaScript because 'unsafe-eval' is not an allowed source of script in the following Content Security Policy directive: "script-src 'self' https://*.netlify.app 'sha512-RGGBy...

    at tryEval (htmlwidgets.js:252:32)
    at window.HTMLWidgets.evaluateStringMember (htmlwidgets.js:799:23)
    at htmlwidgets.js:651:32
    at Array.forEach (<anonymous>)
    at forEach (htmlwidgets.js:55:14)
    at htmlwidgets.js:576:7
    at Array.forEach (<anonymous>)
    at forEach (htmlwidgets.js:55:14)
    at window.HTMLWidgets.staticRender (htmlwidgets.js:574:5)
    at maybeStaticRenderLater (htmlwidgets.js:698:26)

pensivedog avatar Jul 18 '22 19:07 pensivedog

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Feel free to reopen it if you find it necessary.

stale[bot] avatar Aug 07 '23 04:08 stale[bot]