Resolving an HTTP 405 error with REST API client with SiteMinder
search cancel

Resolving an HTTP 405 error with REST API client with SiteMinder

book

Article ID: 4554

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder) CA Single Sign On SOA Security Manager (SiteMinder) CA Single Sign-On SITEMINDER

Issue/Introduction


REST API client call with XSRF/CSRF (Cross-Site Request Forgery) causes an HTTP 405 (METHOD Not Allowed) error on a REST API FORM PostBack when the site is protected by SiteMinder.

 

Cause


If the previous response to the REST API client call contains a set-cookie statement, the client is unable to set the required "X-XSRF-TOKEN" header on the subsequent request, resulting in the HTTP 405 (METHOD Not Allowed) error.

 

Resolution


To prevent the Single Sign On "set-cookie" from being passed to the REST API client call, set the "UseHTTPOnlyCookies" ACO parameter to "Yes" for the WebAgent protecting the site.