Forum Discussion
nitass_89166
Sep 05, 2014Noctilucent
i think exclamation mark (!) should be inside curly brackets.
e.g.
config
[root@ve11a:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_RESPONSE {
if { ![HTTP::header exists "Access-Control-Allow-Credentials"] } {
HTTP::header insert "Access-Control-Allow-Credentials" "true"
}
if { ![HTTP::header exists "Access-Control-Allow-Headers"] } {
HTTP::header insert "Access-Control-Allow-Headers" ""
}
if { ![HTTP::header exists "Access-Control-Allow-Origin"] } {
HTTP::header insert "Access-Control-Allow-Origin" ""
}
}
}
test
[root@ve11a:Active:In Sync] config curl -I http://172.28.24.10
HTTP/1.1 200 OK
Date: Fri, 05 Sep 2014 11:06:09 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Sun, 09 Feb 2014 08:39:51 GMT
ETag: "41879c-59-2a9c23c0"
Accept-Ranges: bytes
Content-Length: 89
Content-Type: text/html; charset=UTF-8
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers:
Access-Control-Allow-Origin:
- Michael_108224Sep 05, 2014Nimbostratusyes that made my error "go away" (as described belov) Thanks
- Vitaliy_SavransSep 05, 2014Nacreousi think exclamation mark (!) should be inside curly brackets. Thanks that was my mistake