# Mobile app URL issues

**URL:** https://meta.discourse.org/t/mobile-app-url-issues/265695
**Category:** Support
**Tags:** discourse-hub
**Created:** [May 21, 2023, 6:32am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695 "2023-05-21T06:32:27Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 21, 2023, 6:32am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/1 "2023-05-21T06:32:27Z")

</div>

Hi All,

I have an issue with the iOS Mobile app for Discourse. When I enter my forum, it says not found. It works on any browser but not on the app.

The URL is [https://forum.penangexpats.com](https://forum.penangexpats.com).  
P.S: I am running a CDN on it but the URL is already pointing and working correctly.

Any ideas?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [May 21, 2023, 6:58am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/2 "2023-05-21T06:58:58Z")

</div>

Take a look at existing similar issues (and their potential solutions) via search. I assume you mean the “Hub” app (there is also the “whitelisted app”)

Eg this one: [Cannot add certain discourse forums in DiscourseHub on Android - #13 by pmusaraj](https://meta.discourse.org/t/cannot-add-certain-discourse-forums-in-discoursehub-on-android/255635/13)

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 21, 2023, 9:01am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/3 "2023-05-21T09:01:08Z")

</div>

Thanks, I have taken a look at most of that. My CDN is with Bunny and I have message them about it to see if there something been stripped at header. The only thing I can think of as I have 2 forums and the other connects just fine which is not on a CDN. And yes it is the Hub app

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 21, 2023, 11:54am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/4 "2023-05-21T11:54:14Z")

</div>

The CDN guys werent able to help as they said they dont strip anything in the header.

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 22, 2023, 5:17am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/5 "2023-05-22T05:17:00Z")

</div>

Anyone with any other ideas?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [May 22, 2023, 4:10pm UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/6 "2023-05-22T16:10:20Z")

</div>

Now you mention this… I previously couldn’t add [unicyclist.com](http://unicyclist.com) to the app with the same error.

When I tried again after a few weeks, I could add the forum to the app.

I didn’t understand why it was repaired, but reading your message I remember I changed my CDN from Stackpath to Bunny.

Note that I use Bunny’s default settings. Nothing special.

So, this issue _may_ come from a CDN configuration, I guess. Not saying this is the case for you, of course.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [May 22, 2023, 4:57pm UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/7 "2023-05-22T16:57:30Z")

</div>

Your CDN is blocking head requests and that breaks lots of things:

```plaintext
curl -I https://forum.penangexpats.com/                                      
HTTP/2 403 
date: Mon, 22 May 2023 16:56:12 GMT
server: BunnyCDN-SG1-868

```

---

<div class="post-metadata">

### Author: ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)
#### Post date: [May 22, 2023, 7:49pm UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/8 "2023-05-22T19:49:46Z")

</div>

> [@nanohits](#):
>
> The CDN guys werent able to help as they said they dont strip anything in the header.

And

> [@Falco](#):
>
> Your CDN is blocking head requests

And **that** is the real problem in our world.

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 23, 2023, 2:40am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/9 "2023-05-23T02:40:17Z")

</div>

> [@Falco](#):
>
> Your CDN is blocking head requests and that breaks lots of things:
> 
> ```plaintext
> curl -I https://forum.penangexpats.com/                                      
> HTTP/2 403 
> date: Mon, 22 May 2023 16:56:12 GMT
> server: BunnyCDN-SG1-868
> 
> ```

Thanks for that, Now I can go back to them and tell them the issue.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [May 23, 2023, 9:09am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/10 "2023-05-23T09:09:36Z")

</div>

Are you using custom Bunny settings?

I’m curious, as I use the same CDN without any issues.

> **Curl**
>
> ```plaintext
> curl -I https:/unicyclist.com
> HTTP/1.1 200 OK
> Server: nginx
> Date: Tue, 23 May 2023 09:10:03 GMT
> Content-Type: text/html; charset=utf-8
> Connection: keep-alive
> Vary: Accept-Encoding
> X-Frame-Options: SAMEORIGIN
> X-XSS-Protection: 0
> X-Content-Type-Options: nosniff
> X-Download-Options: noopen
> X-Permitted-Cross-Domain-Policies: none
> Referrer-Policy: strict-origin-when-cross-origin
> X-Discourse-Route: categories/index
> Vary: Accept
> Cache-Control: no-cache, no-store
> Content-Security-Policy: upgrade-insecure-requests; base-uri 'self'; object-src 'none'; script-src https://unicyclist.com/logs/ https://unicyclist.com/sidekiq/ https://unicyclist.com/mini-profiler-resources/ https://cdn.unicyclist.com/assets/ https://cdn.unicyclist.com/brotli_asset/ https://unicyclist.com/extra-locales/ https://cdn.unicyclist.com/highlight-js/ https://cdn.unicyclist.com/javascripts/ https://cdn.unicyclist.com/plugins/ https://cdn.unicyclist.com/theme-javascripts/ https://cdn.unicyclist.com/svg-sprite/ 'sha256-Gty3/aPWFfSvz7pdT39HY97/+2opLup9V0L19ZF0IwY='; worker-src 'self' https://cdn.unicyclist.com/assets/ https://cdn.unicyclist.com/brotli_asset/ https://cdn.unicyclist.com/javascripts/ https://cdn.unicyclist.com/plugins/; frame-ancestors 'self'; manifest-src 'self'
> X-Request-Id: 40286528-e3e2-433d-9bf0-be971202b973
> X-Runtime: 0.070801
> Strict-Transport-Security: max-age=31536000
> 
> ```

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 26, 2023, 11:12pm UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/11 "2023-05-26T23:12:24Z")

</div>

Yes I am, maybe we can compare and see what the issue is? By custom I mean I have mainly done Custom domain.

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 27, 2023, 1:37am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/12 "2023-05-27T01:37:30Z")

</div>

So Bunny CDN got back to me and said.

have diagnosed this further, and my original guess was correct. Your origin seems to be blocking requests that do not contain a specific browser user agent, see here:

```plaintext
X:~$ curl -I https://forum.penangexpats.com/ -A chrome
HTTP/2 200
date: Tue, 23 May 2023 11:36:08 GMT
content-type: text/html; charset=utf-8
vary: Accept-Encoding
server: BunnyCDN-SG1-868
cdn-pullzone: 1408974
cdn-uid: 7e2b52ab-b488-4ff1-b538-1bc4b7004d60
cdn-requestcountrycode: NL
cache-control: no-cache
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-download-options: noopen
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
x-discourse-route: categories/index
content-security-policy-report-only: upgrade-insecure-requests; base-uri 'self'; object-src 'none'; script-src https://forum.penangexpats.com/logs/ https://forum.penangexpats.com/sidekiq/ https://forum.penangexpats.com/mini-profiler-resources/ https://forum.penangexpats.com/assets/ https://forum.penangexpats.com/brotli_asset/ https://forum.penangexpats.com/extra-locales/ https://forum.penangexpats.com/highlight-js/ https://forum.penangexpats.com/javascripts/ https://forum.penangexpats.com/plugins/ https://forum.penangexpats.com/theme-javascripts/ https://forum.penangexpats.com/svg-sprite/ https://www.googletagmanager.com/gtm.js 'nonce-af9b14e48a03b0e8bb7d66bf8be1368c' 'sha256-Gty3/aPWFfSvz7pdT39HY97/+2opLup9V0L19ZF0IwY='; worker-src 'self' https://forum.penangexpats.com/assets/ https://forum.penangexpats.com/brotli_asset/ https://forum.penangexpats.com/javascripts/ https://forum.penangexpats.com/plugins/; frame-ancestors 'self'; manifest-src 'self'
x-discourse-cached: true
x-request-id: a0b16517-ee98-43f3-a703-913f5e3850a1
x-runtime: 0.004948
x-discourse-trackview: 1
strict-transport-security: max-age=31536000
cdn-proxyver: 1.03
cdn-requestpullsuccess: True
cdn-requestpullcode: 200
cdn-cachedat: 05/23/2023 11:36:08
cdn-edgestorageid: 868
cdn-status: 200
cdn-requestid: 985151325f02414670eb77798e8e5e27
cdn-cache: MISS

X:~$ curl -I https://forum.penangexpats.com/
HTTP/2 403
date: Tue, 23 May 2023 11:36:43 GMT
server: BunnyCDN-SG1-868
cdn-pullzone: 1408974
cdn-uid: 7e2b52ab-b488-4ff1-b538-1bc4b7004d60
cdn-requestcountrycode: SI
cache-control: no-cache
x-request-id: d8519537-194f-41c0-b8a4-e5f9ba56f612
x-runtime: 0.002454
cdn-proxyver: 1.03
cdn-requestpullsuccess: True
cdn-requestpullcode: 403
cdn-cachedat: 05/23/2023 11:36:43
cdn-edgestorageid: 868
cdn-status: 403
cdn-requestid: c55661436d71de7db2b28ac5123093f7
cdn-cache: MISS

```

The top one succeeds when I specify a Chrome user-agent, the bottom one 403’s when there is none. This is not a configuration from Bunny, and must certainly be coming from the origin. I’d recommend checking this further on your end.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [May 27, 2023, 6:39pm UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/13 "2023-05-27T18:39:12Z")

</div>

> [@nanohits](#):
>
> This is not a configuration from Bunny

In this case, then I think answering

> [@nanohits](#):
>
> Yes I am, maybe we can compare and see what the issue is? By custom I mean I have mainly done Custom domain.

isn’t very valuable? 🤔

Still, I just added another hostname and forced SSL:

 ![image](https://global.discourse-cdn.com/meta/original/4X/7/9/9/799dbe2d0f09c41c468b62190decddee2b1fd6e0.png)

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 27, 2023, 11:33pm UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/14 "2023-05-27T23:33:59Z")

</div>

Thats exactly what I did. However, from Bunny they say its the user agent issue.

Can we compare what you have set under user agents in Discourse?

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [May 30, 2023, 8:41am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/15 "2023-05-30T08:41:08Z")

</div>

> [@nanohits](#):
>
> Can we compare what you have set under user agents in Discourse?

Hi Nano,  
Can you clarify what you mean by this?

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 30, 2023, 11:46am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/16 "2023-05-30T11:46:25Z")

</div>

What I mean is what do you have set under user agents in your Discourse setup?

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [May 30, 2023, 11:51am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/17 "2023-05-30T11:51:50Z")

</div>

Are you trying to use bunny to proxy your entire site, or just serve assets?

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 30, 2023, 11:53am UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/18 "2023-05-30T11:53:06Z")

</div>

I have used Bunny for the entire site not just the images.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [May 30, 2023, 12:03pm UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/19 "2023-05-30T12:03:29Z")

</div>

I’m sorry as I can’t answer you as I still don’t understand the question 🙂  
I know what a user agent is, and I only have **very** basic knowledge about CDN, and know pretty much nothing about proxying or stuff like this.

> [@nanohits](#):
>
> what do you have set under user agents in your Discourse setup?

Are you referring to Discourse or Bunny’s configuration? In either case, I didn’t do anything with settings related to some user agents. My forum is a [standard install](https://meta.discourse.org/t/142537?silent=true) with no fancy stuff, and my Bunny configuration is very standard as well.

I can show you my general configuration in Bunny:

> **Summary**
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/6/4/2/642de446a4b8a4a78abbb287d5c529580b8f2253.png)
> 
> ![image](https://global.discourse-cdn.com/meta/original/4X/3/0/6/3064b386a207892343921a9080f186d7f706442b.png)
> 
> ![image](https://global.discourse-cdn.com/meta/original/4X/d/1/c/d1cfcef97e370a4544590975f08123eda9bc275e.png)
> 
> ![image](https://global.discourse-cdn.com/meta/original/4X/3/e/9/3e9f9563e5e5b5fd42dc8e6061e85ed20310b36a.png)
> 
> I didn’t set any other service or configuration on Bunny.

---

<div class="post-metadata">

### Author: ![nanohits](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nanohits/32/210494_2.png) [@nanohits](https://meta.discourse.org/u/nanohits)
#### Post date: [May 30, 2023, 12:06pm UTC](https://meta.discourse.org/t/mobile-app-url-issues/265695/20 "2023-05-30T12:06:21Z")

</div>

Thanks for that. In your Discourse setup for User agents, it is it blank?  
Cause Bunny’s support says the user agent is the issue in Discourse after checking.

And for some reason blocking the website from loading in the mobile app. So wierd.

[Next page](https://meta.discourse.org/t/mobile-app-url-issues/265695.md?page=2)
