Forum Discussion
vaibhav_salunk2
Apr 08, 2020Nimbostratus
x-content-type-options
Hi, I want to insert X-Content-Type-Options value as nosniff in http header using i-rule and below is my syntax. when HTTP_RESPONSE { if { [HTTP::header exists "X-Content-Type-Options"]...
- Apr 08, 2020
Hello,
Here is the correct syntax
when HTTP_RESPONSE_RELEASE { if {!([HTTP::header exists "X-Content-Type-Options"])} { HTTP::header insert "X-Content-Type-Options" "nosniff" } }
vaibhav_salunk2
Apr 09, 2020Nimbostratus
Hi Lidev,
Thanks for quick reply, i am new to i-rule syntax, just wanted to understand use ! in syntax.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects