Good day.
We're migrating Lotus Notes 8.5 applications to version 11. The legacy application I'm working on executed with no problems in browsers link Edge, IE, Chrome and Firefox. The application in the new version is giving the following error:
Firefox: The resource from “lotusappsvr>/requisition.nsf/script_global.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Chrome: Refused to execute script from 'lotusappsvr>/requisition.nsf/script_global.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
A colleague has the same situation and have tried different solutions, including settings of the compatibility mode in the browsers. Another solution found was exactly what the code my application is using.
Code:
Form HTML Head Content
db:=@Subset(@DbName;-1);
"<script src=\"/" + db + "/script_global.js\"></script>"
db is used in other forms as Dim db As NotesDatabase
Thank you.
M. Garcia
Senior Programmer Analyst
Puerto Rico
We're migrating Lotus Notes 8.5 applications to version 11. The legacy application I'm working on executed with no problems in browsers link Edge, IE, Chrome and Firefox. The application in the new version is giving the following error:
Firefox: The resource from “lotusappsvr>/requisition.nsf/script_global.js” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff).
Chrome: Refused to execute script from 'lotusappsvr>/requisition.nsf/script_global.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
A colleague has the same situation and have tried different solutions, including settings of the compatibility mode in the browsers. Another solution found was exactly what the code my application is using.
Code:
Form HTML Head Content
db:=@Subset(@DbName;-1);
"<script src=\"/" + db + "/script_global.js\"></script>"
db is used in other forms as Dim db As NotesDatabase
Thank you.
M. Garcia
Senior Programmer Analyst
Puerto Rico