Getting Cors Error in appwrite functions during any request from the client side using react.
- 0
- Web
I believe you’ll need to return the correct CORS headers in your Function, there
Alternatively, you can use functions.createExecution()
I believe CORS just uses the hostname
Not a whole URL
I Tried but stiil getting the same error
Make sure you’re responding to OPTIONS requests with the CORS headers.
Oh, wait - I see you are
You’ve set all the Access-Control-Allow-Origins to just localhost?
Firstly i tried it using "*" but didn't work
Have you tried making the request with cURL or Postman to confirm the headers are returned?
I tried it but it is showing the internal server error 500
I can share my screen if you want to solve this error
You are trying an OPTIONS request, yes? You don’t seem to have any GET handler, so GET requests will throw a 500 from what I can see of your code.
Recommended threads
- How can I disable client-side account re...
Hi everyone! I’m currently building a game backend using Appwrite, and I’d like to prevent users from creating new accounts directly through the client. My go...
- relationships bug or error idk
hey every one, am using am using appwrite on a project and ran into a problem where by created a relationship and two way to be specific and it is stuck on proc...
- Domain is owned by a different organizat...
Hi Appwrite team, I'm trying to add my custom domain **futlive9.com** to my project, but I'm getting the error: "Domain is owned by a different organization." ...