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
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...
- [SOLVED] GitHub Student Login Loop Issue
signed up using my GitHub Student Developer Pack. However, whenever I click "Sign in with GitHub", I get stuck on the login page. No matter how many times I try...
- Google OAuth Not Working on Brave/Firefo...
I'm having an issue with Google OAuth in my React + Appwrite app. After login, the dashboard is accessible only in Microsoft Edge, but fails in Brave and Firefo...