Announcement Announcement Module
Collapse
No announcement yet.
"Resource interpreted as Script but transferred with MIME type text/html." Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • "Resource interpreted as Script but transferred with MIME type text/html."

    As the title, when rendering a view Chrome warns me that a resource is interpreted as script but with wrong mime/type.
    Inpecting this resource I found that it was actually my page! (and it shouldn't be interpreted as script, obiously )

    Any idea?

    Thanks,
    Stefano
    Last edited by zakhrim; Mar 22nd, 2012, 11:51 AM.

  • #2
    Hi, have you configured the server to send the responses with content-type:application/x-javascript ?

    Comment


    • #3
      Solved

      Thanks for the suggestion.
      I finally solved, and obviously it was a very stupid error.
      I just forgot the lines
      HTML Code:
      <jsp:directive.page contentType="text/html;charset=UTF-8" />
      <jsp:output omit-xml-declaration="yes" />
      in one of my jspx file.

      Stefano

      Comment

      Working...
      X