jbkunst / highcharter

R wrapper for highcharts
http://jkunst.com/highcharter/
Other
717 stars 147 forks source link

hc_tooltip sort=T causes error when deployed on Netlify #772

Closed pensivedog closed 3 months ago

pensivedog commented 1 year ago

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)
stale[bot] commented 11 months ago

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.