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
- GB Hours IS NOT resetting
Hi, I was checking my usage and noticed that all of my usage quotas were reset on August 20, 2026, when my billing cycle renewed. Everything else appears to ha...
- Confused about Appwrite Pro pricing
Hi. I've been subscribed to the $25 Appwrite Pro plan, but I've been getting charged $40. I have two projects on my account. I was wondering where exactly the e...
- How can I disable client-side account re...
Hi everyone! Iβm currently building a game backend using Appwrite, and Iβd like to prevent users from creating new accounts directly through the client. My go...