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
- Our Appwrite organization is suspended
Please give support regarding this , no app is working now , please solve my issue and give support , no one is replying in message section or email.
- How to Avoid Double Requests in function...
I'm currently using Appwrite's `functions.createExecution` in my project. I want to avoid double requests when multiple actions (like searching or pagination) a...
- Send Email Verification With REST
I am using REST to create a user on the server side after receiving form data from the client. After the account is successfully created i wanted to send the v...