Back

Failed to load resource: the server responded with a status of 401 () Error .

  • 0
  • Web
Tiru99
30 Mar, 2024, 18:19

Hey guys I am working on a react project with appwrite backend services on a blog website, but I am constantly receiveing the error " Failed to load resource: the server responded with a status of 401 ()" , I also tried configuring cors , in the platforms section in appwrite but still I am getting the same error, can anyone please help me solve this problem , just let me know if you need any more details to solve the error .

TL;DR
Error message "Failed to load resource: the server responded with a status of 401" indicates unauthorized access. Check permissions in the collection being accessed. Ensure the user is logged in before making requests. Ensure CORS is properly configured in Appwrite platform settings.
Kenny
30 Mar, 2024, 23:49

401 means you’re unauthorized to do whatever you’re doing.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401

Check permissions for whatever collection you’re trying to pull from is correct.

Tiru99
31 Mar, 2024, 05:55

I have allowed the permissions

Tiru99
31 Mar, 2024, 05:56
Kenny
31 Mar, 2024, 14:27

That’s for users, are you logged in before making the request?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more