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
- Google Auth not working in a React App
Authentication with Google has failed. It redirects back to the signin route in React. Attached screenshots for configuration of Google console and Appwrite Go...
- Dokploy docker compose
Hey guys hope y'all doing well, I was wondering if anyone could share a working 1.8.0 docker-compose that works with Dokploy I tried making it but it just does...
- How to display images from storage
I tried the link above, but it returns the error β`Please upgrade to a higher plan.`β I donβt need Transformations at the moment, I just want to display the ima...