Logic Machine Forum
Custom JavaScript blocked by Security Policy - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Custom JavaScript blocked by Security Policy (/showthread.php?tid=5277)



Custom JavaScript blocked by Security Policy - jose_dli - 29.02.2024

Hello everyone,

From last update on SL the graphs that are builded with highchart, custum javascript, are blocked.

The console error on Chrome is the next:

Quote:Refused to load the script 'https://code.highcharts.com/stock/highstock.js?_=1709238767676' because it violates the following Content Security Policy directive: "default-src 'self' 'unsafe-inline' 'unsafe-eval' blob: data: ws://192.168.0.10 wss://192.168.0.10". Note that 'script-src-elem' was not explicitly set, so 'default-src' is used as a fallback.

Any hints or help on this topic would be welcome.

Kind regards


RE: Custom JavaScript blocked by Security Policy - admin - 01.03.2024

Enable "Allow external resources (JS/CSS)" in Utilities > Vis. configuration.


RE: Custom JavaScript blocked by Security Policy - jose_dli - 01.03.2024

Thanks a lot Admin, it works!!