Skip to content
Back

Getting CORS error when accessing website hosted with Appwrite Sites

  • 0
  • 4
  • Sites
  • Web
  • Cloud
Camka
31 Oct, 2025, 20:45

When accessing my website I'm getting: (index):1 Access to font at 'https://assets.appwrite.io/fonts/inter/Inter-Regular.woff2' from origin 'https://mvp-site-razumly.appwrite.network' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Not really sure what's going on here since it was working a few weeks back. I just tried creating a new site from a template and I'm getting the same error.

TL;DR
Issue with CORS error on a website hosted with Appwrite Sites. Check site's settings, framework, and build configuration. Ensure SSR/Static site set correctly and logs checked for any errors. Increasing resource limits may resolve the 502 gateway error. Redeploy after changing resource limits for it to take effect.
Joey Joe Joe
31 Oct, 2025, 20:56

I am also hitting this error. I've got a tanstack start web app and am trying to get it deployed. I first tried letting appwrite auto-config the tanstack deploy and got the 502 bad gateway, and then tried configuring tanstack with nitro v3 and got the same issue. Fwiw my region is new york.

Camka
31 Oct, 2025, 20:57

I had Frankfurt and switched to San Francisco, both gave me the same error.

31 Oct, 2025, 21:13

Hey guys πŸ‘‹ While this is a valid issue, and I will look into it next week, I am pretty sure it just causes fonts to not look as nice on Appwrite's error pge.

There might be bigger problem why you see this - your site probably didnt deploy well.

First thing I would check is site's settings - is framework and build configuration all configured well? Primarly, is SSR / Static site set correctly?

31 Oct, 2025, 21:26

the primary problem is probably the 502 hitting your site. not CORS. What do the logs for your site show?

31 Oct, 2025, 21:46

I don't want to hijack Camka's thread, but since I imagine we're both hitting the same 502 gateway, here are my logs.

I've also ensured that it is configured to use TanStack Start + SSR, and that nitro v3 is configured to output to the /dist directory.

31 Oct, 2025, 21:47

I also get a valid deploy and even a screenshot of my website, but upon navigating to it myself I get the 502.

31 Oct, 2025, 22:08

I'm not getting any new logs. These logs are from the template that isn't working. I tried visiting the site multiple times but I'm only seeing logs from the initial deployment.

31 Oct, 2025, 22:21

weird...i don't see the runtime for this site

31 Oct, 2025, 22:32

Do you need my project ID and site ID?

31 Oct, 2025, 22:55

it's the site for this URL, right? is it a static site?

31 Oct, 2025, 23:22

That's weird, the template site started working.

31 Oct, 2025, 23:24

However, my main project site is now timing out instead of throwing the error I was seeing: https://mvp-site-razumly.appwrite.network/

31 Oct, 2025, 23:31

you might need to increase the resource limits for your site. what's it set at currently?

31 Oct, 2025, 23:32

It's at 0.5 CPU with 512 MB.

31 Oct, 2025, 23:32

ya probably too low

31 Oct, 2025, 23:33

If I change the resource limits how long does it normally take to take effect?

31 Oct, 2025, 23:33

you might have to redeploy. and then it'll be in effect

1
31 Oct, 2025, 23:42

Looks like that fixed it, I'm a little worried about what was happening earlier since it kind of just stopped and started working randomly.

31 Oct, 2025, 23:48

we had some issue with cross-region communication recently that made it stop working

1
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more