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. cloud.fdap.at/v1/databases/646151af2dbec1f2abf6/collections/646151c12fd1d2319057/documents:1 Failed to load resource: net::ERR_FAILED
Did you have used localhost as the appwrite URL?
That does not seems to be related with this issue, so if possible, create a new post with this error you're experiencing π
i have nothing set here
Then that could be the problem, put there your domain
the problem is. if i put here a domain. and call von the generated default vercel url. i get a cors error
maybe i have a thinking error
i think the problem for the cors is :
i host my test site on vercel
Did you add a web platform for your app?
no
wenn i start my nuxt app locally it works. but when i deploy it on vercel i get the cors
That's probably because of the mismatch in the hostname
on a local environment, the hostname would be localhost or 127.0.0.1
On a vercel deploy, it'll be something like you-app-name.vercel.app
So what you can do is, check what the URL is for your vercel app, and make that the hostname in the project settings in Appwrite
in the gui or in the docker-composer?
GUI
how i create my own certificate
Since doesn't seems solved, reopening
ty for your help now its solved. I think i will write a github gist for that problem π β€οΈ
Please do share the link to the gist when you're done! Will be helpful to others!
[SOLVED] how i create my own certificate
y i will do it π
ty for your help
Recommended threads
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Streamlit UI and local DB
I want to use Appwrite for automation, like run watchdog service every morning 3 am. Anyone got suggestions, already explored github and documentation no luck. ...