Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-8386

Requisitioning UI fails to load in modern browsers if used behind a proxy

    XMLWordPrintable

Details

    Description

      Using apache as reverse proxy adds the following header to each request:

      X-Content-Type-Options: nosniff
      

      (which is a good thing to do, BTW).

      Browsers like chromium and google chrome fails to include and execute the baseref.jsp with the following error:

      Refused to execute script from 'https://my-domain.com/opennms/admin/ng-requisitions/app/basehref.jsp' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
      angular.js:12722 Initializing RequisitionsService
      angular.js:12722 baseHref = ""
      angular.js:12722 getRequisitions: retrieving pending and deployed requisitions.
      angular.js:12722 getRequisitions: merging pending and deployed requisitions.
      

      This leads to some more follow-up errors which renders the new provisioning UI unusable.

      To fix this, we should set the correct content for baseref.jsp (and maybe others).

      Attachments

        Activity

          People

            agalue Alejandro Galue
            fooker Dustin Frisch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: