IBM Support

JavaScript appears as text in browser when accessing WAS app via webseal

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.

[{"Product":{"code":"SSPREK","label":"Tivoli Access Manager for e-business"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"WebSEAL","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0;6.1;6.1.1;7.0;8.0;9.0","Edition":"","Line of Business":{"code":"LOB24","label":"Security Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg21468439