I’m testing a Confluence Macro (Custom-UI) using Forge tunnel.
In general all works fine. But from time to time a warning message appears:
CSP violation detected for 'connect-src' while serving content at http://localhost:8001/ For an app to share data with external resources or use custom CSP, follow the steps in: https://go.atlassian.com/forge-content-security-and-egress-controls
Usually I can continue testing.
But when the additional message appears “CSP violation detected for ‘script-src’ …” the execution stops.
The deployed macro works fine without any error message in the browser console.
Does anyone has a clue why this appears? Is this an issue related to forge tunnel / node / docker?
P.S. Im working on Win10, node v12.19, Docker 4.3.2
Browser log when CSP violation occurs (only when using Forge tunnel):