#🗂│web
Hello guys, I need a little bit of help.
I already read the article: https://appwrite.io/blog/post/cors-error
My app has 2 web platforms with the following hosts:
- myfrontend.local
- vuela-plus.netlify.app
My original platform was set for localhost, but I changed it to myfrontend.local to try fixing my CORS issue. I hardcoded a local IP to the domain myfrontend.local using my hosts file. This works - local development has no CORS issues.
My issue is on Netlify
I set my env variables as:
NEXT_PUBLIC_APP_URL=httpa://vuela-plus.netlify.app
My Netlify Platform is configured for the correct domain, yet I still get this error:
Access to fetch at 'https://cloud.appwrite.io/v1/account/sessions/email' from origin 'https://vuela-plus.netlify.app' 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.
Could this be a Netlify-specific issue?
Can anyone help?
Recommended threads
- Introducing new string column types made...
Adding new string types is hugely bennificial! Unfortunately it made the current column types not editable to change their types to the new longer field types.
- there is critical problem in this part
when user update the integer and double both get error not update or upload
- how can i make a relationship between a ...
i want to relate the $id from users auth table in appwrite with other column in my table user_profile. because is the same user... how can i have exactly the s...