So options should be put through JSON.parse()to validate it
This will throw an error if the JSON includes callback functions.
Is there a way to set a flag in Highcharter to validate the JSON at point of creation or disable use of callback functions?
This would mean it won't be a problem later in the process, when trying to use it with Highcharts and a strict security policy?
Highcharts recommends only using valid JSON for chart options if the origin of the code can't be trusted. https://www.highcharts.com/docs/chart-concepts/security
So options should be put through
JSON.parse()
to validate itThis will throw an error if the JSON includes callback functions.
Is there a way to set a flag in Highcharter to validate the JSON at point of creation or disable use of callback functions? This would mean it won't be a problem later in the process, when trying to use it with Highcharts and a strict security policy?