Page tree

Automatic JavaScript injection by the App Visibility agent for Java corrupts the page.

Issue

Occasionally, some application pages appear corrupted when the App Visibility agent for Java is installed on the application server.

Probable cause

Automatic JavaScript injection mechanism corrupts the page.

Resolution

You can prevent JavaScript injection by the agent for Java from specific URLs.

  1. Create an App Visibility agent policy and add the following line:

    agent.javascript.inject.exclude.urls=<URLpath>

    Replace <URLpath> with the path from your application URL.

    Example

    If your application URL is http://my-server11:8080/my-application-login, add the following line to the agent policy file:

    agent.javascript.inject.exclude.urls=/my-application-login

    To exclude more than one URL, separate paths with a comma.

  2. Apply the policy to the agent.

Related topics

Configuring an App Visibility agent policy to collect and monitor application information

Modifying an App Visibility agent policy