[SOLVED] API preflight request not working on .fra.appwrite.run function domain
- 3
- Resolved
- 7
- Functions
- Cloud
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.
<@1088513765378625617> got any solution for this?
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
I believe this is a known issue with Cloud at present.
cc <@287294735054274560>
Thanks we're looking into this
<@1088513765378625617> <@796164927034359808> we weren't handling OPTIONS requests right, but it should be fixed now. Thanks for your patience! 🙏🏼
Thanks for the help.
[SOLVED] API preflight request not working on .fra.appwrite.run function domain
<@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 ?
https://fra.cloud.appwrite.io/v1
i'm follow this blog article: https://appwrite.io/blog/post/handle-cors-in-serverless-functions
but it's not working =/
Recommended threads
- Error With iOS Apps
I keep getting the below errors for my flutter app. The clients are registered and have been. This wasn't an issue a few hours ago. AppwriteException: AppwriteE...
- Backup policies think im on free tier
Cant create more than one policy as im told to ugprade, when clicking upgrade im taken to the upgrade page which confirms im already on pro
- Cant get rid of "get started"
Not that important, but annoying. No matter what I do I cant get the "Get started" to go away, ive added a bunch of web platforms and its just stuck.