Forum Discussion
WAF custom block page settings
We have configured custom block page for WAF. It is perfectly working fine. Now our customer want few security settings like csp headers, hsts to be enabled on the response page. Could you please confirm if it is possible? If yes, kindly help with the same. Thank you
You don't need to add those headers in the code, but in the response headers field as shown below.
if you are trying to add via iRule, please use HTTP_RESPONSE_RELEASE event as ASM is triggered after HTTP_RESPONSE event
- spalandeNacreous
You can select custom response and add those CSP, HSTS headers under Response Headers
- BK1Cirrus
Thanks Sanjay for your response on this. Appreciate it.
Yes we have customized the block page from here by putting custom html code in the given field. Now I am looking for modifying code for hsts and csp headers. I tried the way we add it in irule but somehow it's still not working. I need help on this not sure if it's due to syntax problem or something else.
- spalandeNacreous
You don't need to add those headers in the code, but in the response headers field as shown below.
if you are trying to add via iRule, please use HTTP_RESPONSE_RELEASE event as ASM is triggered after HTTP_RESPONSE event
Recent Discussions
Related Content
* 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