β all posts
Gordon Beeming
From the Cloudflare dashboard select your domain

Navigate to Speed | Optimization | Content Optimization | Auto Minify and untick HTML
Blazor Server events not triggering when hosted behind Cloudflare
#Symptoms
- You are using Blazor Server
- Hosting your application behind Cloudflare proxied traffic
- No events are triggering in your blazor app
#Solution
The solution is luckily quite simple (once you know π )


Once HTML is switched off for minification, everything should work as expected.
Credit: Brendan Sluke on the StackOverflow post c# - Blazor onclick event not triggered - Stack Overflow
Related posts