Content Security Policy headers issue
jeclrsg opened this issue · 0 comments
jeclrsg commented
I ran into an issue that seemed to be related to restrictive Content Security Policy headers. The troublesome bit of code appeared to only be https://github.com/hpcc-systems/Visualization/blob/trunk/packages/util/src/platform.ts#L4, and I was able to correct it with the suggestion mentioned here (josdejong/mathjs#1019 (comment)) of replacing the new Function("return this")
with a function() { return this; }
.
In the project where I encountered this problem, I was only using a few functions from the comms package so I might have not run into something that didn't work properly due to that simple modification.