we have appwrite instance running on a VPS with ip of 192.168.1.75 on Docker ! then
i have add A record in cloudflare and mapped the ip to domain of app.kajelevator.ir
also i built web flutter application deployed on cloudflare pages and mapping the custom domain of it to kajelevator.ir that effected DNS configurations in cluodflare to have a CNAME record with kajelevator.ir content kajelevator.pages.dev
Now the record look like this
type name content
A app 192.168.1.75
CNAME kajelevator.ir kajelevator.pages.dev
now from flutter pwa witch is kajelevator.ir when i send request to my app instance i got a CORS error. how to fix it ?
with reserch and using ai i have edited .env file of docker with following things
.env _APP_DOMAIN_TARGET=app.kajelevator.ir _APP_DOMAIN=kajelevator.ir _APP_CORS_ALLOW_ORIGIN=https://kajelevator.ir
but the error persist and the error is this:
Recommended threads
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- [Beginner] CLI --queries Syntax Error & ...
Hi everyone! I am a beginner with Appwrite and trying to use the CLI, but I'm stuck with a syntax error. Any guidance would be greatly appreciated! 🙏 **Enviro...
- [SOLVED] curl error Number: 6 — function...
Hello, I invested a lot of time in this error in a fresh install of appwrite 1.8.1 and lasted until fix, this if for helping anyone that can have the same weird...