Uploaded image for project: 'FlightPath'
  1. FlightPath
  2. FLPATH-2358

Bypass CSP issues with monaco editor

XMLWordPrintable

    • False
    • Hide

      None

      Show
      None
    • False

      In production environment, when CSP rules are not explicitely set, the monaco editor fails to load - the Workflow page does not show the workflow definition.

       

      Browser console log:

       

       

      index.js:86 Refused to load the script 'https://cdn.jsdelivr.net/npm/monaco-editor@0.43.0/min/vs/loader.js' because it violates the following Content Security Policy directive: "script-src 'self' 'unsafe-eval' https://cdn.segment.com". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

       

      This is not happening in dev env.

              mlibra@redhat.com Marek Libra
              mlibra@redhat.com Marek Libra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: