Skip to content
Back

[SOLVED] API preflight request not working on .fra.appwrite.run function domain

  • 3
  • Resolved
  • 7
  • Functions
  • Cloud
Hmasters
11 Jun, 2025, 10:19

When I am calling a function on my APP through the domain is failing. Because the preflight request (OPTIONS HTTP request) times out. this only occurs with functions that have the fra.appwrite.run domain. any other eg .global works fine.

TL;DR
API preflight request issue on .fra.appwrite.run function domain was resolved. User can create a proxy server or use a custom domain on function same as frontend domain to fix the problem. Another user mentioned that OPTIONS requests handling is fixed now.
12 Jun, 2025, 07:43

<@1088513765378625617> got any solution for this?

12 Jun, 2025, 16:36

2 Ways. One way is to create a proxy server that responds correctly to the options request and sends the normal GET/POST request to the function.

Another way would be to put a custom domain on your function thats the same domain as your frontend. Then that request won't be sent

12 Jun, 2025, 16:44

I believe this is a known issue with Cloud at present.

12 Jun, 2025, 16:49

cc <@287294735054274560>

12 Jun, 2025, 20:47

Thanks we're looking into this

13 Jun, 2025, 17:38

<@1088513765378625617> <@796164927034359808> we weren't handling OPTIONS requests right, but it should be fixed now. Thanks for your patience! 🙏🏼

2
13 Jun, 2025, 23:29

Thanks for the help.

13 Jun, 2025, 23:31

[SOLVED] API preflight request not working on .fra.appwrite.run function domain

27 Nov, 2025, 20:01

<@462046107556511744> i'm facing this issue, have you some info about it, because all my OPTIONS preflight failed. How are we supposed to handle it ?

27 Nov, 2025, 20:03

https://fra.cloud.appwrite.io/v1

27 Nov, 2025, 20:32

i'm follow this blog article: https://appwrite.io/blog/post/handle-cors-in-serverless-functions

but it's not working =/

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