#🗂│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
- Weird permission failure
when creating an account I use following methods: ``` Future<void> register(String email, String password, String username) async { final user = await accoun...
- Appwrite Storage error 503s for automate...
I'm facing error 503s from Appwrite after about 5-6 seconds of making AI requests from my tool with images and files above 20MB (=> not inline base64 used, but ...
- Flutter Android oAuth is no more working
I currently don't get the oAuth login to work in flutter android. it works on ios and on web. but when try to use it on Android, i get to the point where the ca...