
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
- Apple OAuth in SwiftUI
Any ideas why this error might be showing up when trying it sign in via apple in SwifUI? _Concurrency/CheckedContinuation.swift:196: Fatal error: SWIFT TASK CO...
- exclude password field from getDocument
i got a getDocument that lists data from the user (username, password, id.....) so my question is how do i exclude the password so it doesnt get listed out? m...
- Date objects behaving weird
I've programmed an app that uses Date objects. Everything works perfectly in my local environment, but on my hosted version with Vercel, the times of the object...
