
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
- how many Teams can be created?
I am creating an app where I will let users create groups. This could mean there will be many groups created by user, to isolate those groups properly I am thin...
- React native app login via Safari
Hi! I deployed for debug my React Native app in web, chrome everythink works well but in safari on mac and ios I cant login. I found this one error in safari co...
- Invalid credentials after migration
Hi everyone! After migrating our self-hosted Appwrite 1.3.1 to another server (staging, so a different domain), we are now getting 'Invalid credentials' when ...
