Académique Documents
Professionnel Documents
Culture Documents
2 | OpenTopic | TOC
Contents
Configuring the AJAX proxy...............................................................................................3
OpenTopic | Configuring the AJAX proxy | 3
<proxy:method>GET</proxy:method>
</proxy:actions>
<proxy:headers>
<proxy:header>User-Agent</proxy:header>
<proxy:header>Accept.*</proxy:header>
<proxy:header>Content.*</proxy:header>
<proxy:header>Authorization.*</proxy:header>
<proxy:header>If-.*</proxy:header>
<proxy:header>Pragma</proxy:header>
<proxy:header>Cache-Control</proxy:header>
</proxy:headers>
<proxy:cookies>
<proxy:cookie>JSESSIONID</proxy:cookie>
</proxy:cookies>
</proxy:policy>
• If a service requires authentication, you can configure it to also allow basic authentication requests by adding a
basic-auth-support="true" attribute to the <proxy:policy> element. For example:
<proxy:policy
url="http://my.network.com/service/*"
acf="none"
basic-auth-support="true">
...
</proxy:policy>
If this attribute is not added, when an unauthenticated request is sent to a service that requires authentication,
the service does not display the basic authentication dialog, but returns an HTTP 403 status code instead.
• To allow a particular service to run on your network and to pass cookies for LTPA tokens to the features:
<proxy:policy url="http://my.network.com/service/*" acf="none">
<proxy:actions>
<proxy:method>GET</proxy:method>
</proxy:actions>
<proxy:headers>
<proxy:header>User-Agent</proxy:header>
<proxy:header>Accept.*</proxy:header>
<proxy:header>Content.*</proxy:header>
<proxy:header>Authorization.*</proxy:header>
<proxy:header>If-.*</proxy:header>
<proxy:header>Pragma</proxy:header>
<proxy:header>Cache-Control</proxy:header>
</proxy:headers>
<proxy:cookies>
<proxy:cookie>JSESSIONID</proxy:cookie>
<proxy:cookie>LtpaToken</proxy:cookie>
<proxy:cookie>LtpaToken2</proxy:cookie>
</proxy:cookies>
</proxy:policy>
Note: Specify the headers using regular expressions.
4. Add any new policy blocks before the default policy setting in the template file. The default policy setting serves
as a catch-all for all other requests and looks like this:
<proxy:policy url="*" acf="none">
<proxy:actions>
<proxy:method>GET</proxy:method>
</proxy:actions>
<proxy:headers/>
<proxy:cookies/>
</proxy:policy>
By default, it allows all services to send GET requests to the Lotus® Connections features, and it prevents all
cookies or headers from being directed to the features.
5. Specify values for the following proxy configuration properties:
OpenTopic | Configuring the AJAX proxy | 5