Forum Discussion
Nicolas_Menant
Jan 16, 2009Employee
when HTTP_REQUEST {
if {[HTTP::method] equals "OPTIONS" } {
log local0. "OPTIONS method detected"
if {[HTTP::uri] equals "/storeWeb/authentication/AuthenticationServlet"} {
log local0. "uri equals /storeWeb/authentication/AuthenticationServlet!"
if {[HTTP::version] eq "1.1" } {
log local0. "intercept response !"
HTTP::respond 200
HTTP::header insert Allow: GET, HEAD, POST, TRACE, OPTIONS
}
}
}
}
I added some logging you can check into /var/log/ltm. If it works remove it since it will use more cpu with it (it's just for troubleshooting)
P.S: i couldn't test it so if you have some syntax error don't hesitate to post and i'll try to help