Keeweb self-hosting + Cloudflare

I had set up keeweb self-hosting and also had cloudflare enabled on the domain that was doing the self-hosting. Everything was working fine until a few days ago when the self-hosted domain simply showed an empty page. Devtools console revealed that the issue was a problem with content security policy in keeweb (does not allow loading scripts from sources other than the domain) and Cloudflare’s rocket loader features (which adds a cloudflare JS load to the page). The fix was to create a rule in Cloudflare to exclude the self-hosted domain and sub-pages to be excluded from rocket loader. Hope this helps if you are trying these quixotic things and running into strange problems like these.

Leave a Reply

Your email address will not be published. Required fields are marked *