Details
-
Bug
-
Status: Resolved (View Workflow)
-
Major
-
Resolution: Fixed
-
17.0.0
-
Security Level: Default (Default Security Scheme)
-
None
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).