I have an offline angular electron desktop app and I'm trying to connect an open source nesting tool to it but I can't seem to get it working. The nesting tool is non-nodejs browser based app that uses JS/html and is run by using "http-server" command while in its directory.
Link to Nesting Tool: https://github.com/Jack000/SVGnest
Note:
We tried integrating this in two ways:
"Uncaught SyntaxError: Failed to execute 'importScripts' on 'WorkerGlobalScope': The URL 'matrix.js' is invalid."
or "GET http://localhost:4200/util/eval.js 404 (Not Found)"
"ERROR DOMException: Blocked a frame with origin "http://localhost:4200" from accessing a cross-origin frame."
Is there any ways to solve these issues and if not what other approaches should I try to make this integration work?