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
- is `account.get()` safe to be used in th...
I want to user's `id` for authentication. However, a while ago I was told in this server not to use `account.get()` and instead add user preferences for that us...
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- CORS errors in Obsidian custom plugin
Hi, anyone here familiar with obsidian community plugins? In short: it's a local first note app which supports writing your own add-ons / plugin But I keep get...