#🗂│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
- Missing Invoice
Hi! I need help with billing on my account (marelu@gmail.com). I have never received a single invoice by email. My organization has been on the Pro plan since...
- Appwrite Functions cold start
Hello. I'm seeing really long cold starts on Appwrite Cloud Functions and wanted to know if this is expected. My function just authenticates the user, fetches ...
- Error can not create `tablesdb` event wi...
When i'm trying to add an event with `tablesdb` i get an error message My event value: `tablesdb.mtg-decklist-dev.tables.queue_parsing.rows.*.create` Same err...