I would like to send appwrite function url as url redirect param for creating magic url session.
The error I am getting is "URL host must be one of: localhost, cloud.appwrite.io, appwrite.io
Appwrite function url is like
*.appwrite.global
Summary
To send the Appwrite function URL as a URL redirect parameter for creating a magic URL session, you need to use a custom domain with Appwrite Cloud. Set the custom domain as a hostname in your project and provide it as the URL for the magic URL session. This should resolve the error message you're encountering.
Ryan
Moderator
Mar 29, 2024, 20:55
Are you using Cloud?
saifu
Web Developer
Mar 29, 2024, 20:55
Yes
Ryan
Moderator
Mar 29, 2024, 20:57
Are you using a custom domain at all?
saifu
Web Developer
Mar 29, 2024, 20:58
No.. I have created an appwrite function.. I want to send the function url in the url param of createmagicurlsession
Ryan
Moderator
Mar 29, 2024, 20:59
It looks like the only way to do what you want would be to use a custom domain name with Appwrite Cloud. You'd be able to set the custom domain as a hostname in your project which should allow you to provide it as a URL for the magic URL session
saifu
Web Developer
Mar 29, 2024, 21:00
But how can I set *.appwrite.global as a custom domain