Select Your Language

Infrastructure and Management

Cloud Computing

Storage

Runtimes

Integration and Automation

  • Comments
  • Refused to execute script from <URL> because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.

    Posted on

    Hello Everyone,

    We are currently doing an upgrade of our JSP application from EAP 7.3 to EAP 8.0.

    When logging in to our app when button in the side menu is clicked the first time, the page / iframe loading successfully. All resources (js, css) are getting 200 status but when clicked the second time or navigate through we are getting 302 status causing redirect. Is there anything we missed in the standalone.xml config or in our app?

    Solutions / Investigation we did but didn't work:

    1. Session is not expired when checked in the browser or session id hasn't changed.
    2. Modified web.xml in our app

    custom-jsp
    org.apache.jasper.servlet.JspServlet

    mappedfile
    false

    custom-jsp
    *.jsp

    1. Added in web.xml
      jsp-config>

      *.jsp
      UTF-8
      text/html; charset=UTF-8

    2. Added in web.xml

    Public Resources
    /static/*

    5. Modified web.xml

    by

    points

    Responses

    Red Hat LinkedIn YouTube Facebook X, formerly Twitter

    Quick Links

    Help

    Site Info

    Related Sites

    © 2025 Red Hat