Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudflare responds with 403 to requests for assets from subdomain #2286

Open
progval opened this issue Oct 21, 2023 · 8 comments
Open

Cloudflare responds with 403 to requests for assets from subdomain #2286

progval opened this issue Oct 21, 2023 · 8 comments

Comments

@progval
Copy link

progval commented Oct 21, 2023

https://liberapay.com/ works fine for me, but when visiting https://fr.liberapay.com/ all icons are broken and the browser console is full of errors:

12:26:52.304 Navigated to https://fr.liberapay.com/
12:26:52.741 This page uses the non standard property “zoom”. Consider using calc() in the relevant property values, or using “transform” along with “transform-origin: 0 0”. [fr.liberapay.com](https://fr.liberapay.com/)
12:26:52.848
GET
https://liberapay.com/assets/fonts/ubuntu-regular-webfont.woff2?etag=.Y59w7DuKv86LeAV3NYPdQg~~
[HTTP/2 403 Forbidden 13ms]

12:26:52.849
GET
https://liberapay.com/assets/bootstrap/fonts/glyphicons-halflings-regular.woff2?etag=.RIw0pW1pnCkRetxkxDr_6w~~
[HTTP/2 403 Forbidden 12ms]

12:26:52.849
GET
https://liberapay.com/assets/fonts/ubuntu-light-webfont.woff2?etag=.l-7x1Z9urwMB_zSvYLoCzw~~
[HTTP/2 403 Forbidden 14ms]

12:26:52.850
GET
https://liberapay.com/assets/fonts/ubuntu-medium-webfont.woff2?etag=.EbQpDk7pE17X7SWHG2a8cQ~~
[HTTP/2 403 Forbidden 17ms]

12:26:52.851
GET
https://liberapay.com/assets/forkawesome/1.1.7/fonts/forkawesome-webfont.woff2?v=1.1.7
[HTTP/2 403 Forbidden 17ms]

12:26:52.874 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/bootstrap/fonts/glyphicons-halflings-regular.woff2?etag=.RIw0pW1pnCkRetxkxDr_6w~~. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.874 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/fonts/ubuntu-regular-webfont.woff2?etag=.Y59w7DuKv86LeAV3NYPdQg~~. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.874 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/fonts/ubuntu-light-webfont.woff2?etag=.l-7x1Z9urwMB_zSvYLoCzw~~. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.875 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/fonts/ubuntu-medium-webfont.woff2?etag=.EbQpDk7pE17X7SWHG2a8cQ~~. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.875 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/forkawesome/1.1.7/fonts/forkawesome-webfont.woff2?v=1.1.7. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.889 downloadable font: download failed (font-family: "Glyphicons Halflings" style:normal weight:400 stretch:100 src index:1): bad URI or cross-site access not allowed source: https://liberapay.com/assets/bootstrap/fonts/glyphicons-halflings-regular.woff2?etag=.RIw0pW1pnCkRetxkxDr_6w~~
12:26:52.890 downloadable font: download failed (font-family: "Ubuntu" style:normal weight:400 stretch:100 src index:1): bad URI or cross-site access not allowed source: https://liberapay.com/assets/fonts/ubuntu-regular-webfont.woff2?etag=.Y59w7DuKv86LeAV3NYPdQg~~
12:26:52.891 downloadable font: download failed (font-family: "Ubuntu" style:normal weight:300 stretch:100 src index:1): bad URI or cross-site access not allowed source: https://liberapay.com/assets/fonts/ubuntu-light-webfont.woff2?etag=.l-7x1Z9urwMB_zSvYLoCzw~~
12:26:52.891 downloadable font: download failed (font-family: "Ubuntu" style:normal weight:500 stretch:100 src index:1): bad URI or cross-site access not allowed source: https://liberapay.com/assets/fonts/ubuntu-medium-webfont.woff2?etag=.EbQpDk7pE17X7SWHG2a8cQ~~
12:26:52.892 downloadable font: download failed (font-family: "ForkAwesome" style:normal weight:400 stretch:100 src index:1): bad URI or cross-site access not allowed source: https://liberapay.com/assets/forkawesome/1.1.7/fonts/forkawesome-webfont.woff2?v=1.1.7
12:26:52.933
GET
https://liberapay.com/assets/bootstrap/fonts/glyphicons-halflings-regular.woff?etag=.-idyMn9V2BmDAf24vPyBWA~~
CORS Missing Allow Origin

12:26:52.944
GET
https://liberapay.com/assets/fonts/ubuntu-regular-webfont.woff?etag=.J1ctv4yahIxIlJtapyXlzw~~
CORS Missing Allow Origin

12:26:52.946
GET
https://liberapay.com/assets/fonts/ubuntu-light-webfont.woff?etag=.TLa3cOXnfVguIqskNfrmJA~~
CORS Missing Allow Origin

12:26:52.958
GET
https://liberapay.com/assets/fonts/ubuntu-medium-webfont.woff?etag=.Pmw1RfnKZMw5VqamSnumVg~~
CORS Missing Allow Origin

12:26:52.959
GET
https://liberapay.com/assets/forkawesome/1.1.7/fonts/forkawesome-webfont.woff?v=1.1.7
CORS Missing Allow Origin

12:26:52.970 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/fonts/ubuntu-regular-webfont.woff?etag=.J1ctv4yahIxIlJtapyXlzw~~. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.971 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/bootstrap/fonts/glyphicons-halflings-regular.woff?etag=.-idyMn9V2BmDAf24vPyBWA~~. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.972 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/fonts/ubuntu-light-webfont.woff?etag=.TLa3cOXnfVguIqskNfrmJA~~. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.972 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/forkawesome/1.1.7/fonts/forkawesome-webfont.woff?v=1.1.7. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.974 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/fonts/ubuntu-medium-webfont.woff?etag=.Pmw1RfnKZMw5VqamSnumVg~~. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:52.975 downloadable font: download failed (font-family: "Ubuntu" style:normal weight:400 stretch:100 src index:2): bad URI or cross-site access not allowed source: https://liberapay.com/assets/fonts/ubuntu-regular-webfont.woff?etag=.J1ctv4yahIxIlJtapyXlzw~~
12:26:52.975 downloadable font: no supported format found (font-family: "Ubuntu" style:normal weight:400 stretch:100 src index:4) source: (end of source list)
12:26:52.975 downloadable font: download failed (font-family: "Glyphicons Halflings" style:normal weight:400 stretch:100 src index:2): bad URI or cross-site access not allowed source: https://liberapay.com/assets/bootstrap/fonts/glyphicons-halflings-regular.woff?etag=.-idyMn9V2BmDAf24vPyBWA~~
12:26:52.976 downloadable font: download failed (font-family: "Ubuntu" style:normal weight:300 stretch:100 src index:2): bad URI or cross-site access not allowed source: https://liberapay.com/assets/fonts/ubuntu-light-webfont.woff?etag=.TLa3cOXnfVguIqskNfrmJA~~
12:26:52.976 downloadable font: no supported format found (font-family: "Ubuntu" style:normal weight:300 stretch:100 src index:4) source: (end of source list)
12:26:52.976 downloadable font: download failed (font-family: "ForkAwesome" style:normal weight:400 stretch:100 src index:2): bad URI or cross-site access not allowed source: https://liberapay.com/assets/forkawesome/1.1.7/fonts/forkawesome-webfont.woff?v=1.1.7
12:26:52.977 downloadable font: download failed (font-family: "Ubuntu" style:normal weight:500 stretch:100 src index:2): bad URI or cross-site access not allowed source: https://liberapay.com/assets/fonts/ubuntu-medium-webfont.woff?etag=.Pmw1RfnKZMw5VqamSnumVg~~
12:26:52.977 downloadable font: no supported format found (font-family: "Ubuntu" style:normal weight:500 stretch:100 src index:4) source: (end of source list)
12:26:53.126
GET
https://liberapay.com/assets/bootstrap/fonts/glyphicons-halflings-regular.ttf?etag=.4Yu_YR8qLkOvwHGqL04VEg~~
CORS Missing Allow Origin

12:26:53.127
GET
https://liberapay.com/assets/forkawesome/1.1.7/fonts/forkawesome-webfont.ttf?v=1.1.7
CORS Missing Allow Origin

12:26:53.192 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/forkawesome/1.1.7/fonts/forkawesome-webfont.ttf?v=1.1.7. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:53.192 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://liberapay.com/assets/bootstrap/fonts/glyphicons-halflings-regular.ttf?etag=.4Yu_YR8qLkOvwHGqL04VEg~~. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing). Status code: 403.

12:26:53.193 downloadable font: download failed (font-family: "ForkAwesome" style:normal weight:400 stretch:100 src index:3): bad URI or cross-site access not allowed source: https://liberapay.com/assets/forkawesome/1.1.7/fonts/forkawesome-webfont.ttf?v=1.1.7
12:26:53.193 downloadable font: no supported format found (font-family: "ForkAwesome" style:normal weight:400 stretch:100 src index:5) source: (end of source list)
12:26:53.193 downloadable font: download failed (font-family: "Glyphicons Halflings" style:normal weight:400 stretch:100 src index:3): bad URI or cross-site access not allowed source: https://liberapay.com/assets/bootstrap/fonts/glyphicons-halflings-regular.ttf?etag=.4Yu_YR8qLkOvwHGqL04VEg~~
12:26:53.193 downloadable font: no supported format found (font-family: "Glyphicons Halflings" style:normal weight:400 stretch:100 src index:5) source: (end of source list)

​```
@progval
Copy link
Author

progval commented Oct 21, 2023

The underlying issue is that I'm getting 403 errors from Cloudflare; for some reason I'm only getting them when assets are fetched from subdomains.

@Changaco Changaco changed the title Same Origin Policy breaks icon fonts on subdomains Cloudflare responds with 403 to requests for assets from subdomain Oct 21, 2023
@Changaco
Copy link
Member

@progval Can you send me the content of one of those 403 responses from Cloudflare? The IP address your requests are coming from could also help. You can send that information privately if you don't want to post them here, for example via email.

@progval
Copy link
Author

progval commented Oct 21, 2023

<!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><link href="/cdn-cgi/styles/challenges.css" rel="stylesheet"></head><body class="no-js"><div class="main-wrapper" role="main"><div class="main-content"><noscript><div id="challenge-error-title"><div class="h2"><span class="icon-wrapper"><div class="heading-icon warning-icon"></div></span><span id="challenge-error-text">Enable JavaScript and cookies to continue</span></div></div></noscript></div></div><script>(function(){window._cf_chl_opt={cvId: '2',cZone: "liberapay.com",cType: 'managed',cNounce: '11035',cRay: '8198d6179f460168',cHash: '37a3a715620af74',cUPMDTk: "\/assets\/fonts\/ubuntu-regular-webfont.woff2?etag=.Y59w7DuKv86LeAV3NYPdQg~~&__cf_chl_tk=s5tf206Zxb2Wbb0dvxNACjJYkTFPDxga1Q_fR2Sb3CY-1697884342-0-gaNycGzNDGU",cFPWv: 'b',cTTimeMs: '1000',cMTimeMs: '0',cTplV: 5,cTplB: 'cf',cK: "visitor-time",fa: "\/assets\/fonts\/ubuntu-regular-webfont.woff2?etag=.Y59w7DuKv86LeAV3NYPdQg~~&__cf_chl_f_tk=s5tf206Zxb2Wbb0dvxNACjJYkTFPDxga1Q_fR2Sb3CY-1697884342-0-gaNycGzNDGU",md: "Xv5inCfchqghDNm2qpn7aMLhyJMGaE1HDO94mMqpkb8-1697884342-0-AU2YyiaiegYr0eu3fLqYWN2OLhLjwRtPnLgYJPslpYnNhmoLbSHqvwcG3g-xU-eR-wra-b5cYAtmfpTVflqTj915Vx-q80wd48FtGXGkOt0Ik7-DnK-E1xIuA5sAU6HMY4_-tPUdLk1S9bec7v7iHpuebZXlj_SuCV0o9dLiKozIBfsRvaco3cFDhQ3eXJEM4Zr40bk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0M/2qBVErJRjNiXWWBOpctAjM/3NKSJhXJlLRb4UecUVZaCy6SMDSjrmm/DJJsmy+s2MYvmE84tGTStsd4NGHisWS3MT+3TXrXzuUpRSjY3GYXgsFlQ4Wi4eWAhvB8SBEkMUyKCOaYtvB4ST2g/OZ0R8UXG4QMV3FHF94c9g/CnRPCM30aiLNN1p/CrkMyOYfUp1qyT24xaZ4J4t2GxNhQE3eJAKvp53aRfoyZdTvzj4FFYz3JbfiHgApCnHX+LFnE4RoA93OMlY0m+RTb+ZifEjqW1wmQZzyPKJck+Qn71o38R3ZW77MV+QvNJCMyRP0doWXhKWGYoZ0abgqyQOnGWvsvSm3xvfzgRg4dTYEgdJyrK7Ut+pU2St6mYG47MJs2/JHgVwIr5RRhrd0qCQhqpUHSEng0Oh5I',t: 'MTY5Nzg4NDM0Mi45ODIwMDA=',cT: Math.floor(Date.now() / 1000),m: 'CxRoZ9QmFbUmxnnE+6X89bI6VCEz9154Z7COm6d8wks=',i1: 'ZViJroVePvhGYVl6MKA+VA==',i2: 'aXTky7oS69aIXk83YK25VA==',zh: 'VE+OZDKUe6EGaNzasZEK+kI38b8mOSkk3EmiY6pWcrg=',uh: 'sflE6DF0Hj48hVa05IUzinquGCjs530fEYwCgVJuwEU=',hh: 'CFOK09z05xp/Qz6aFgF+QxtiZhFlwi7HevrZfk85GEk=',}};var cpo = document.createElement('script');cpo.src = '/cdn-cgi/challenge-platform/h/b/orchestrate/chl_page/v1?ray=8198d6179f460168';window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null, "\/assets\/fonts\/ubuntu-regular-webfont.woff2?etag=.Y59w7DuKv86LeAV3NYPdQg~~&__cf_chl_rt_tk=s5tf206Zxb2Wbb0dvxNACjJYkTFPDxga1Q_fR2Sb3CY-1697884342-0-gaNycGzNDGU" + window._cf_chl_opt.cOgUHash);cpo.onload = function() {history.replaceState(null, null, ogU);}}document.getElementsByTagName('head')[0].appendChild(cpo);}());</script></body></html>root@boron:~# c^C

From both 51.159.34.167 and 2001:bc8:6005:1c:208:a2ff:fe0c:6922. They are in a hosting provider's IP ranges, so Cloudflare is rather trigger-happy about them, but here I don't have the option to solve the captcha.

@Changaco
Copy link
Member

So the problem is that Cloudflare is letting the initial request for the HTML page go through, but then challenges the sub-requests for the assets. This is unexpected behavior and might be considered a bug in Cloudflare's algorithms.

I've changed the challenge from “Managed” to “JavaScript”. Can you try again to see if that challenge behaves differently?

@progval
Copy link
Author

progval commented Oct 21, 2023

no visible change

@Changaco
Copy link
Member

I have now whitelisted your IP addresses. Can you confirm that this workaround is effective?

@progval
Copy link
Author

progval commented Oct 21, 2023

it is

@Changaco
Copy link
Member

Changaco commented Nov 7, 2023

I've made improvements to the Cloudflare “Firewall rules” for the liberapay.com domain. These improvements have now allowed me to remove almost all the challenges which were solely based on the network the requests come from, including the one on AS12876 (Scaleway) which resulted in the creation of this issue. I've also turned off the firewall rule which challenges requests that use a language subdomain (e.g. fr.liberapay.com), as opposed to the global domain (liberapay.com).

Cloudflare's weird behavior (challenging the sub-requests for static assets instead of the initial request for HTML) remains a concern. I'm leaving this issue open for possible future investigation of that problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants