Refused to execute script from <URL> because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled.
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:
- Session is not expired when checked in the browser or session id hasn't changed.
- Modified web.xml in our app
custom-jsp
org.apache.jasper.servlet.JspServlet
mappedfile
false
custom-jsp
*.jsp
-
Added in web.xml
jsp-config>*.jsp
UTF-8
text/html; charset=UTF-8 -
Added in web.xml
Public Resources
/static/*
5. Modified web.xml
Responses