Back

Coockies

  • 0
  • Users
  • Web
SHADOW07
10 Feb, 2024, 19:33

hello everyone , i have a problem with coockies , when i want to get user information using the account.get() promise , i got an infinite amount of errors in my console that saying , Third-party cookie will be blocked. Learn more in the Issues tab, I am using nextjs , and i didn't find a solution for this problem , can someone please help me

TL;DR
Developers are experiencing issues with cookies when trying to retrieve user information using the account.get() promise. They are receiving infinite errors in the console stating that third-party cookies will be blocked. One suggested solution is to set up a custom domain by going to project settings and adding a domain there. This will make the Appwrite API accessible on a custom subdomain, which follows the first-party cookies policy. Additionally, the developer mentions a spam issue and is advised to add console logs to investigate the flow of their application, as it may be causing a DoS attack.
Meldiron
10 Feb, 2024, 19:45

Hi 👋 This warning means a localStorage is used instead of cookies, which is les secure. Not unsecured, but less secure.

Solution to cookie issue is to have Appwrite endpoint be on a subdomain of your frontend. If you app is on myapp.con, then you need Appwrite to point to appwrite.myapp.com, for example. Doing this domain setup follows 1st party cookies policy.

Regarding the spam, thats unusual. Please try to add some console logs to investigate flow of your application. It might be getting stuck in some recursion, causing the spam and tiny DoS attack on your project

SHADOW07
10 Feb, 2024, 19:59

should i add appwrite endpoint in my appwrite cloud ?

Meldiron
10 Feb, 2024, 19:59

To set up the custom domain, you need to go to project settings and add a domain there. This makes Appwrite API accessible on your custom subdomain

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more