How can I enable cookies on users end? I am using github OAuth
Hey there π While this works out of the box in most browsers, some have extra security rules regarding first party cookies.
To solve it, you need Appwrite API to run on same top-level domain as your web app. That means, if your app was at facebook.com, you should have Appwrite running on api.facebook.com, or appwrite.facebook.com, or similar.
To achieve this, you can go to your proejct settings and add a custom domain. After doing changes to your DNS settings and connecting that domain to Appwrite, you should be good to go. Make sure to replace endpoint in your code with your new domain, as well as the recirect URL in GitHub app.
With those changes, cookies should be set properly, browsers should have the trust and user should be successfully logged in.
Please ping me if something seems off, doesnt work, or is too confusing π
okay so my app is hosted on vercel: https://app-name.vercel.app/
I havent really bought a domain
If you're testing, you can edit your hosts file. Otherwise, in order for others to access your app in production, you'll need a domain
Recommended threads
- general_route_not_found - Auth Guide
If youβve just added a subdomain to your project, verified your DNS records, and confirmed your SSL certificate is working, but you're still hitting a `general_...
- Can't resume paused project
I have logged in in incognito, done the email verification and still get the invalid fingerprint error. What's the issue.
- Download appwrite Docs
Is there is a way to download appwrite Docs ? Because appwrite skill isn't enough to give the agent full understanding about how appwrite works (I noticed this ...