Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

.js blocked due to MIME type error

Status
Not open for further replies.

MDGarcia

Programmer
Oct 7, 2004
64
0
0
PR
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top