# Mobile access keeps loading after using CloudFlare

**URL:** https://meta.discourse.org/t/mobile-access-keeps-loading-after-using-cloudflare/327590
**Category:** Support
**Tags:** cloudflare
**Created:** [September 22, 2024, 2:34am UTC](https://meta.discourse.org/t/mobile-access-keeps-loading-after-using-cloudflare/327590 "2024-09-22T02:34:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![laolupaojiao](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/laolupaojiao/32/450995_2.png) [@laolupaojiao](https://meta.discourse.org/u/laolupaojiao)
#### Post date: [September 22, 2024, 2:34am UTC](https://meta.discourse.org/t/mobile-access-keeps-loading-after-using-cloudflare/327590/1 "2024-09-22T02:34:51Z")

</div>

I used CloudFlare and after testing, when I opened the webpage in my mobile browser, it kept loading, It looks like a file cannot be loaded, causing the loading mask to keep showing

I tried to turn on or off certain features in CloudFlare but it still didn’t work. After testing, it has been determined that it was caused by a configuration failure in CloudFlare (after removing CloudFlare, I can enter)

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/4/4/a44579431afcb9aa5d62a9557ec8456cda4e4846.png)  
I have read this post and need to add cloudflare.template.yml to app.yml. Where is it added

> [@Using Discourse with Cloudflare: Best Practices](https://meta.discourse.org/t/using-discourse-with-cloudflare-best-practices/293405):
>
> Using Discourse with Cloudflarebookmark This guide explains how to configure and use Discourse with Cloudflare, including security best practices and troubleshooting tips. person_raising_hand Required user level: Administrator information_source Console access is required for self-hosted installations Summary Cloudflare can enhance your Discourse instance with improved performance through CDN, additional security layers like DDoS protection, and HTTPS support. This guide covers the…

```plaintext
templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  ## Uncomment the next line to enable the IPv6 listener
  #- "templates/web.ipv6.template.yml"
  - "templates/web.ratelimited.template.yml"
  ## Uncomment these two lines if you wish to add Lets Encrypt (https)
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"
   - "templates/cloudflare.template.yml"

```

Is this correct？

The current situation is that it is normal to open web pages on computers and some apps, but the mobile browser keeps loading when opened (clear cache, multiple people trying)

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [September 22, 2024, 3:42am UTC](https://meta.discourse.org/t/mobile-access-keeps-loading-after-using-cloudflare/327590/2 "2024-09-22T03:42:31Z")

</div>

no idea if it’s at all related but there have been recent errors related some new cloudflare speed brain thing

> [@Issue with Activate Account Page After Update to 3.4.0 (Blank Page)](https://meta.discourse.org/t/issue-with-activate-account-page-after-update-to-3-4-0-blank-page/327541/4):
>
> There is another site reporting CSP errors related to the /cdn-cgi/speculation endpoint: [Refused to load the script 'xxxx.com/cdn-cgi/speculation' because it violates the following Content Security Policy directive - #2 by simon](https://meta.discourse.org/t/refused-to-load-the-script-xxxx-com-cdn-cgi-speculation-because-it-violates-the-following-content-security-policy-directive/327466/2). I am not aware of similar issues that have been reported in the past. Maybe something has changed either on Cloudflare or in Discourse 3.4.0. The /cdn-cgi/speculation endpoint is added to domains registered on Cloudflare when the “Speed Brain” feature is enabled. Speed…
