Back

CORS Error

  • 0
  • Locale
  • Web
Yannik
27 Jan, 2024, 18:00

application:1 Access to fetch at 'https://cloud.appwrite.io/v1/locale' from origin '' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'https://localhost' that is not equal to the supplied origin. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

TL;DR
Title: CORS Error - Developer is experiencing a CORS error and needs help resolving it. - They are asked to share console logs and network logs. - The error occurs while calling the endpoint for 'locale', but it works for 'createemailsession'. - A solution is suggested: Set the 'Access-Control-Allow-Origin' header value to the correct origin or use 'no-cors' mode. - A YouTube video tutorial is shared as a potential solution.
D5
27 Jan, 2024, 18:12

I think this will solve the issue: https://youtu.be/oEpRh9H5l5g?si=dXu-uKJl2yvucpW5

D5
27 Jan, 2024, 18:12

Tell me if that works 😄

Yannik
27 Jan, 2024, 18:33

I still have the issue... its working for createemailsession but it failes for locale

Drake
27 Jan, 2024, 18:34

Would you please share the network logs?

Drake
27 Jan, 2024, 18:35

Are there any other console logs?

Yannik
27 Jan, 2024, 18:35
Drake
27 Jan, 2024, 18:36

It doesn't look like you set the project id

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