Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

EXCEPTION: This browser is not supported or 3rd party cookies and data may be disabled

Tags:

This error occurs when our users "Block third-party cookies and site data".

To replicate the error, go to:

  1. Check your Chrome browser "Block third-party cookies and site data" reference in this guide
  2. Go to https://www.deeptent.com
  3. Click SIGN IN
  4. Next you will see a blank screen. And if you open up the browser developer console you will see this error:

We always advise our users to Uncheck the blocking of third-party cookies and site data; however, some users still prefer to block it.

  1. One can still sign in to their Gmail with this blocked. Interestingly, why can't our users sign in using the Firebase-Google OAuth provided with their third party cookies & site data blocked?

  2. We are built with Angular2 and Firebase. Is there no way that the users can still authenticate with third-party cookies and site data blocked?

like image 356
Jek Avatar asked Jan 19 '17 07:01

Jek


People also ask

How do I enable third party cookies in my browser?

Chrome on AndroidTap the three vertical dots on the top right corner in Chrome and select Settings. Find the advanced section and go to Site Settings. Inside the site settings, tap cookies and tick the “Allow 3rd party cookies” checkbox. Close and reload the browser.

How do I update my settings to allow 3rd party cookies on Mac?

OS X / macOS UsersClick Safari > Preferences and click the “Privacy” tab. Make a note about what is currently selected. Under “Cookies and website data”, click “Always Allow”.

How do I unblock third party cookies on Safari?

Click the “Privacy” tab, which is in the top panel. Navigate to “Cookies and Website Data” and un-tick the option “Block all cookies”. This will allow 3rd party cookies on Safari.


2 Answers

The domain you're using is deeptent.com, but the domain that firebase is authenticating against and setting cookies from is your .firebaseapp.com domain. So, yes, the cookies are considered third-party. The firebase folks really should take a harder look at how they are connecting custom domains in the firebase hosting setup. Also, see here: Use Google Firebase Authentication without 3rd Party Cookies

like image 124
Mitch Rose Avatar answered Oct 03 '22 03:10

Mitch Rose


I had the same issue with firebase and Angular.

In your environment.ts file, look for:

firebase: {   authDomain: '<domain>.firebaseapp.com', 

And in chrome settings chrome://settings/content/cookies, add the following string to the cookies whitelist:

https://[*.]firebaseapp.com

like image 42
Gus Avatar answered Oct 03 '22 05:10

Gus