Forum Discussion
Anzine321
Aug 15, 2023Altocumulus
captcha not show after enable header security
I have a problem when i enable header security link article https://my.f5.com/manage/s/article/K57207881 But captcha not show How to check this problem
- Aug 21, 2023
You need then to allow google recaptcha URLs. Something like that:
if {!([HTTP::header exists "Content-Security-Policy"])} { HTTP::header insert Content-Security-Policy "default-src 'self'; script-src 'self' https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/; style-src 'self'; font-src 'self'; img-src 'self'; frame-src 'self' https://www.google.com/recaptcha/ https://recaptcha.google.com/recaptcha/; upgrade-insecure-requests" }
Frequently Asked Questions | reCAPTCHA | Google for Developers
Anzine321
Altocumulus
reCaptcha by google developer, i dont know how to modify irule, do you have any suggestion or reference ?
Thanks
Amine_Kadimi
Aug 21, 2023MVP
You need then to allow google recaptcha URLs. Something like that:
if {!([HTTP::header exists "Content-Security-Policy"])} {
HTTP::header insert Content-Security-Policy "default-src 'self'; script-src 'self' https://www.google.com/recaptcha/ https://www.gstatic.com/recaptcha/; style-src 'self'; font-src 'self'; img-src 'self'; frame-src 'self' https://www.google.com/recaptcha/ https://recaptcha.google.com/recaptcha/; upgrade-insecure-requests"
}
Frequently Asked Questions | reCAPTCHA | Google for Developers
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