val-town-docs icon indicating copy to clipboard operation
val-town-docs copied to clipboard

"Run in Val Town" button can trigger Cloudflare's protection

Open andreterron opened this issue 1 year ago • 1 comments

Example: http://localhost:4322/integrations/github/github-users-stars-pagination/#email-yourself-when-you-get-a-comment-reaction

This is only triggered by a few code snippets. My hypothesis is that some keywords like Bearer could be triggering them.

This is what the page looks like:

image

One option we have is to turn code editors into a form, and do a POST navigation to that page. Alternatively, we link to vals that can be forked. But that would defeat the purpose of keeping the val's code managed in git.

andreterron avatar Feb 23 '24 22:02 andreterron

The clean solution to this is that we disable Cloudflare's WAF. There are threads about this, https://community.cloudflare.com/t/disable-waf-on-domain-and-subdomain/384737 - basically we want Cloudflare's proxing but not the WAF, and it'd be a bummer to have to work around an anti-feature.

tmcw avatar Feb 26 '24 13:02 tmcw