Rank 1: Thread
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.
Votes
0
Replies
7
Participants
Unknown
Messages
8
Rank 1: Thread
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
Rank 1: Thread
Can you please guide me?
Rank 1: Thread
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
Rank 1: Thread
Ok the function ran successfully using appwrite sdk for client
Rank 1: Thread
Thanks. I was using axios/fetch
[SOLVED] Cors Issue