Is it correct that if I create multiple platforms with different hostnames, only one of the hostnames is used for CORS and only one project ID is used? Or is there another way to do that?
Currently, I'm using one platform for development and have localhost set as the hostname, and I also have cloudflare pages with *.pages.dev set as the hostname. But currently, CORS is only set for localhost.
You can create as many platform as you want. The cors is being handle dynamically within the PHP code, which means Appwrite will allow cors for any of your platforms. So, when you'll access it from localhost Appwrite will allow localhost, and when you'll access it from other allowed platform Appwrite will allow the cors for that host.
no, you can have as many platforms as needed
Ok it checks every dot in a domain.
So *.pages.dev don't allow sub.sub.pages.dev to access
✅ Multiple platforms not using all hostnames for CORS
[SOLVED] Multiple platforms not using all hostnames for CORS
Just to be clear, If I am working on a project, I need to create two "web platforms".
- *.example.com - for my production (example.com) and testing (test.example.com).
- localhost - for my local development.
- You need example.com for example.com and the *.example.com for anything.example.com
- You don't need to add localhost.
So I still need two web platforms ?
Yes
Recommended threads
- 403 The current user has been blocked.
Hello, I have a free plan; I've tried to access my project and I get the message "403 The current user has been blocked." I have database, sites, and auth in us...
- [Bug?] row_already_exists (409) after ma...
Hi, I'm experiencing a confusing issue with Appwrite Cloud Setup: A `tournaments` table with a composite UNIQUE index on (tournament_name, date). Steps to rep...
- Am getting "The current user has been bl...
Was working on my app FLUTTER WEB APP, and suddenly, I have been blocked.... What can I do ? When I try to sign in to the console, I get "The current user has ...