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
- Sudden CORS Errors - Domain hasn't Chang...
I have an Appwrite project with two web apps configured, the first one has the hostname `*` and the second one I just added to test if it could fix the issue wi...
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Collections list not showing up when try...
I'm trying to create new relationship attribute but both one way and two way relationship is not showing up collections list to connect with my relationship att...