-
Notifications
You must be signed in to change notification settings - Fork 988
Description
[REQUIRED] Describe your environment
- Operating System version: mac os 10.15.3
- Browser version: Chrome 80.0.3987.132
- Firebase SDK version: 7.4.0
- Firebase Product: auth
[REQUIRED] Describe the problem
For some reason, when I'm working on my firebase powered web app locally on http://localhost:8080 and try to login using Google with the signInWithPopup method, the request to /__/auth/iframe returns a 307 redirect with the Location header set to 'about:blank'. This only seems to happen in my normal chrome window where I'm signed into my usual google account. Clearing my site data/storage through the Application tab in devtools does nothing, nor does quitting the browser, or restarting my computer.
When I open an incognito window, the request returns 200 just fine. I can see the request to /__/auth/iframe has a different set of headers:
/__/auth/iframe from my normal browser window:
DNT: 1
Referer: http://localhost:8080/login
Sec-Fetch-Dest: iframe
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
/__/auth/iframe from my incognito window:
:authority: dev.paths.in
:method: GET
:path: /__/auth/iframe?{SNIP}
:scheme: https
accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
accept-encoding: gzip, deflate, br
accept-language: en-US,en;q=0.9
cache-control: no-cache
cookie: e_gcip_1000003={SNIP}
dnt: 1
pragma: no-cache
referer: http://localhost:8080/login
sec-fetch-dest: iframe
sec-fetch-mode: navigate
sec-fetch-site: cross-site
upgrade-insecure-requests: 1
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
The error returned from the signInWithPopup method is:
code: "auth/network-request-failed"
message: "A network error (such as timeout, interrupted connection or unreachable host) has occurred."
Has anyone run into something similar or may know what is going on? Am I just missing something obvious here?
Apologies if this may be better suited to stackoverflow, if so I can ask a question there.
Steps to reproduce:
What preceded this happening is I added a custom domain to host my firebase app. This issue was then happening when I visited the new domain and tried to login. Then I updated my authDomain config setting to the new custom domain, added the custom domain to the "Authorized redirect URIs" through the gcloud credentials/oauth management dashboard, and that started working fine.
Relevant Code:
n/a