Back

cors error in my react project

  • 0
  • Web
yellow
3 Dec, 2023, 07:42

i encounterd cors error in my react project , i watched few tutorials and setup cors option in appwrite , but the error still persists

TL;DR
User is encountering a CORS error in their React project. They have tried setting up CORS options in Appwrite but the error persists. They are asking for guidance on changing the hostname and request headers. There is no solution provided in the thread.
K_Vasen
3 Dec, 2023, 07:45

Kindly make sure to specify Hostname under the settings of web platform

Drake
3 Dec, 2023, 14:35

Please also share the request headers for the failing request

rudra_2001
4 Dec, 2023, 09:36

Hi, I am facing a similar CORS error. What name should I keep for the hostname

rudra_2001
4 Dec, 2023, 09:38

This is what I kept the name of my web platform

Drake
4 Dec, 2023, 09:56

Please share the request headers for the related request

rudra_2001
4 Dec, 2023, 10:01

This is for the user.jsx file

Drake
4 Dec, 2023, 10:02

This is a 401 error because you're unauthenticated. Is there another request?

rudra_2001
4 Dec, 2023, 10:03

This is for the ideas.jsx file

rudra_2001
4 Dec, 2023, 10:04

Also how do you change the hostname of your web platform in your console ?

Drake
4 Dec, 2023, 10:04

Please share the request headers

Drake
4 Dec, 2023, 10:05

Wait this isn't your thread...did you create a <#1072905050399191082> post?

rudra_2001
4 Dec, 2023, 10:05

fk my bad hehe

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