Details
-
Type:
Bug
-
Status: Resolved (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 17.0.0
-
Fix Version/s: 18.0.0, Meridian-2016.1.0
-
Component/s: Web UI - Admin
-
Security Level: Default (Default Security Scheme)
-
Labels: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).