×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Java script blocked due to MIME type error

Java script blocked due to MIME type error

Java script blocked due to MIME type error

(OP)
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 “http://<;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 'http://<;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

RE: Java script blocked due to MIME type error


My first guess is that the script_global.js is not JavaScript, but may contain JSON. In that case, you'd have to add
type="application/json" to the <script> tag to indicate the content is not executable.


Mark

"You guys pair up in groups of three, then line up in a circle."
- Bill Peterson, a Florida State football coach

RE: Java script blocked due to MIME type error

(OP)
Good day.

I made the change but is not producing the data to list. I'm checking with another developer with the same issue (and more experienced) to see if your resolution works.

Thanks for answering.

M. Garcia
Senior Programmer Analyst
Puerto Rico

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close