
Hello everyone,
I need one help. I am not able to call appwrite functions using axios, its giving me cors error for localhost. I am calling the api from a React app.

You'll need to update your function to allow the origin

Can you please guide me?

step5:1 Access to XMLHttpRequest at 'https://6530d1e603dfbc5254d3.appwrite.global/' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

I suggest you read up on CORS and how to enable it

Ok the function ran successfully using appwrite sdk for client

Thanks. I was using axios/fetch

[SOLVED] Cors Issue
Recommended threads
- Email Verification Delay Issues - Need H...
Hi everyone! I launched my product yesterday after testing, and I'm seeing users drop off during email verification. Initially thought users didn't like the pro...
- Trigger-Based Email Notification for Dat...
I'm developing a clinical website with an intake form. When users submit their information, it's automatically stored in Appwrite's database. I'd like to set ...
- Trying to connect platform
I'm stuck here for about 1 day how can I connect my platform i am trying to connect localhost in react
