Rank 2: Process
Getting a CORS error while doing a react tutorial
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 2: Process
Hi steven, it seems that CORS error generate from ideas and user.jsx file. Also error code 401s
Rank 2: Process
This is the permissions that I setup right now for my collections
Rank 2: Process
@Drake this is the thread
Rank 2: Process
Also how do you change the hostname of your web platform in your console ?
Rank 2: Process
Ok so I have changed the hostname to my ip, but theres still some bugs
Admin
Please share the request headers
Admin
What?
Rank 2: Process
These are the errors
Admin
As I said, please share the request headers of the list documents API call
Rank 2: Process
Do you mean these ?
Admin
No
Rank 2: Process
If not these can you let me know how to access the request headers ?
Rank 2: Process
Are these the req headers ?
Admin
what did you add for the web platform?
Rank 2: Process
I'm really sorry but I don't understand your question
Admin
In the appwrite console. You said you added a web platform, didn't you?
Rank 2: Process
No, I just changed the name of the hostname and made it my IP address
Rank 2: Process
127.0.0.1
Admin
you should be using localhost. if you're using 127.0.0.1, you need to register that in the appwrite console for your project
Rank 2: Process
If I use localhost as my host name I get these errors
Rank 2: Process
And when I use my IP address as my hostname the errors are similar to the picture
Admin
This is get account. Please show the request for list documents
Admin
As I mention before, the get account is probably failing because you're not logged in
Rank 2: Process
its these account requests from user.jsx file indicating an issue with account.get() method