Hi guys, I'm dealing with a CORS issue but configurations seems alright, please help:
Access to fetch at 'https://api.mega-voice-command.com/v1/account' from origin 'https://mega-voice-command.com' 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
So my endpoint is https://api.mega-voice-command.com/v1 and trying to access from https://mega-voice-command.com and I have the domain whitelisted in hostnames with wildcard subdomain (attached screenshot).
Just for the record the code works from localhost as the CORS is literally allowing localhost from backend. and when using in server-side authentication, appwrite functions, etc, it's working. DNS records and SSL is set properly as you can see if you access the endpoint. but from browser we are experiencing CORS error.
any idea how do I fix this?
Recommended threads
- Anonymous Sessions using Node SDKs
I am attempting to use anonymous sessions with the Node SDK but I have simply no idea how to persist the session to a cookie, pass it to the session client, etc...
- Auth working for emulator but not for ph...
hey guys i'm using appwrite for expo react native it is working perfectly for emulator but does not working for physical devices can u explain any one and it is...
- general_unauthorized_scope
localhost oauth not working. general_unauthorized_scope error showing. { "message": "User (role: guests) missing scopes ([\"account\"])", "code": 401, ...