Michael_108224
Sep 05, 2014Nimbostratus
test for http response header, if not there set one
the senario is, the webserver sometimes "forgot" to set http header. I would like a irule witch first is checking if the http header is ther. If the header is present (dont change). If the header is not the, insert a default value.
like : when HTTP_RESPONCE {
test for the present of http header : Access-Control-Allow-Credentials Access-Control-Allow-Headers Access-Control-Allow-Origin
if they have a value = do nothing. if they do not then : HTTP::header insert Access-Control-Allow-Credentials "true" HTTP::header insert Access-Control-Allow-Headers "" HTTP::header insert Access-Control-Allow-Origin ""
end