Warning "Third-party cookie will be blocked. Learn more in the Issues tab"

66.9k views Asked by At

I am learning React and when running the code, I am getting a warning 'Third-party cookie will be blocked. Learn more in the Issues tab' in the console (inspect). I am getting this warning in the console every second after running the code. The number of counts of this warning is increasing continuously every second. How can I stop this?

I tried to remove this, but I did not get a correct answer. I am expecting to remove this warning or at least stop the increasing count of this warning.

5

There are 5 answers

1
Priyen Mehta On

The warning you're seeing about third-party cookies being blocked is likely related to a setting in your browser or a plugin you're using. Third-party cookies are often used for tracking purposes and some browsers have started to block them by default due to privacy concerns.

You can try any of these steps to stop:

  1. Disable third-party cookie blocking -> From the privacy or security section of the browser's settings.
  2. Check browser Extensions: Check Any browser extension that may be responsible for blocking Third-party cookies.
  3. Update your Browser: Make sure you are using the latest version of the browser.

It might will fix your issue.

1
Augustronic On

There are no security settings in IITC Mobile to fix the cookie blocking.

0
anilonwebs On

You might want to look into this article from Google where it is mentioned more details regarding Third party cookie restriction where Chrome is going to block third party cookies at the end of this year.

https://developers.google.com/privacy-sandbox/3pcd

Thanks.

0
snbmt21 On

Something similar began to happen to me as well. The issue for me was using "Open With Live Server" on my code. Not sure if you are doing this or not but figured I'd put it out there just in case someone else comes along looking for the same answers I did :)

0
vit On

I don't know what is your application context, but I've received this warning in many of my apps where I was handling auth-cookies. The issue is that my cookies were structured like this:

enter image description here

It includes attributes that Google is indicating will no longer be supported.

Cookies with the SameSite=None; Secure and not Partitioned attributes that operate in cross-site contexts are third-party cookies. In future Chrome versions, reading third-party cookies will be blocked. This behavior protects user data from cross-site tracking.

Using SameSite=None isn't suitable for authentication cookies; you should opt for SameSite=Lax or SameSite=Strict depending on your application's requirements.

It's crucial for your frontend and backend to be within the same domain. For instance, my frontend runs on 127.0.0.1:5173, and my backend on 127.0.0.1:5000. This same rule applies to production servers as well.

Now, I dont receive this warning anymore enter image description here

See: