[Self-hosted] Cloudflare Turnstile captcha is blocked by a CSP that only allows hCaptcha

(#652) Bug Fixed self-hosting

Thread

Comment by @b-hayes
RexSystem 1 vote originally by @b-hayes on GitHub
hit this too on a self-hosted setup. worked around it at the reverse proxy for now - since hcaptcha.com is already in the CSP directives turnstile needs, i just append the turnstile origin next to it. caddy example:
reverse_proxy app-proxy:8080 {
    header_down Content-Security-Policy "https://hcaptcha.com " "https://hcaptcha.com https://challenges.cloudflare.com "
}
that covers script/style/connect/frame in one go and the widget renders. obviously just a stopgap til the CSP knows about the turnstile provider, but figured it'd help anyone else stuck on the empty captcha box.