Information for: DEVELOPERS   PARTNERS   SUPPORT

Resolving 401 Unauthorized Issues

In certain cases, you may run into the following error message when trying to access Metrics: “You are not authenticated to view this page. 401”. Refer to the screenshot below for what that error message may look like.

metrics_401_unauthorized_error

You may be receiving this error due to one or both of the following issues. Please verify the settings for each of the following cases and that should resolve the error message.

Issue #1: Changes to the default cross-domain (SameSite) behavior of cookies introduced via Google Chrome v80 in Feb 2020

This issue is applicable only if you’re using Chrome v80 or later. The Chrome v80 release (Feb 2020) changed the default cross-domain (SameSite) behavior of cookies. As a temporary measure, we recommend that you change the following flag in Google Chrome to access Metrics.

Step 1: Open a new tab in Google Chrome

Step 2: Go to the following address: chrome://flags/#same-site-by-default-cookies

Step 3: Change the SameSite by default cookies flag from Default / Enabled to Disabled

Step 4: Relaunch Chrome

Following the above steps should resolve the error message in Google Chrome. A future release of Customer Data Platform (CDP) will also resolve the issue such that users will not need to change the default state of the SameSite flag. If you’re unable to change the above flag in your installation of Google Chrome, you may also use Firefox or Microsoft Edge for the purposes of accessing Metrics.

Refer to the following screenshot for what the setting looks like in Google Chrome.

metrics_samesite_flag

Issue #2: Google Chrome is blocking third-party cookies unless they’re allowlisted

Sometimes, as a precautionary security measure, your IT org may block third-party cookies in Google Chrome and only allow cookies from certain allowlisted domains. In such cases, you may receive the 401 Unauthorized error message when trying to access Metrics. This can be resolved by allowlisting third-party cookies from looker.com using the following instructions.

Step 1: Open a new tab in Google Chrome

Step 2: Go to the following address: chrome://settings/content/cookies

Step 3: Turn on the toggle for Allow sites to save and read cookie data

Step 4: At the bottom, add / allowlist the following domain for allowing third-party cookies: [*.]looker.com

Refer to the following screenshot for what the setting looks like in Google Chrome.

metrics_cookie_settings