Forum Discussion
bluestar007_339
Nimbostratus
Dec 08, 2017Irule error
Hi,
I am getting error on the below rule
when HTTP_RESPONSE {
if { !([ HTTP::header exists "Public-Key-Pins-Report-Only “ ])} { HTTP::header insert "Public-Key-Pins-Report-Only" "aaaa...
Stanislas_Piro2
Cumulonimbus
Dec 08, 2017You can use this code :
when RULE_INIT {
set stattic::PKPRO "pin-sha256=\"aaaaasdsdsdsdsdsdsdsadsdsdsd\";"
append stattic::PKPRO "pin-sha256=\"sdsdsdsdsdssdsdsdsdsd\";"
append stattic::PKPRO "pin-sha256=\"sdsdsdssadsadsadsasadsadsadsadsad\";"
append stattic::PKPRO "max-age=5184000;"
append stattic::PKPRO "includeSubDomains;"
}
when HTTP_RESPONSE {
if {!([HTTP::header exists "Public-Key-Pins-Report-Only"])} {
HTTP::header insert "Public-Key-Pins-Report-Only" $stattic::PKPRO
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
