Question & Answer
Question
JavaScript is showing as text in my browser and the script never actually runs, what could be the problem? The back-end server is WAS front ended by IHS and access is through WebSEAL.
Cause
invalid mime type configuration in WAS
Answer
When attempting to run a JavaScript, it is showing as text in my browser and the script never actually runs... what could be the problem? The back-end server is Websphere Application server front ended by IBM HTTP Server. Access is through Tivoli Access Manager WebSEAL.
The change that is required can be made from the WebSphere console, and is
as follows:
- Change the MIME type configuration in WAS so that it uses type application/x-javascript for files with a .js extension. The setting is under Virtual Hosts -> default_host in the GUI.
A similar problem can be seen at times on the IHS server as well. Verify the mime.types file has 'js' set to application/x-javascript as well.
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21468439