I am trying to set custom domain for my firebase app
Firebase hosted url : https://inventory-app-726af.firebaseapp.com/ Custom Domain: inv.agsft.com
I have followed all instructions as part of setting custom domain but after verification step when I click on finish button, status will always be "Needs Setup".
I am managing DNS through cloudflare (https://www.cloudflare.com/) and I am following Quick setup option.
Any pointers to resolve it?
Many Thanks Pari
I had the same issue. Here's how I fixed it:
1) Cick the View button on the problematic domain (in the Hosting section next to where it says Needs Setup).
2) Change the 'Setup mode' from Quick Setup to Advanced and follow the 3 steps
This is not a quick process, but it should be working about 5 minutes after you complete step 2c.
When I change my setting like below, it started to work again. Redirect loop fixed:
In my case I did the same that Brennen did:
But just start working when I:
After that automatically the status added was connected.
Remember: Before testing, clean you browser cache.
I had the same problem, I was able to resolve it by toggling the DNS Status on cloudflare from
DNS and HTTP Proxy (CDN)
to justDNS
on the two A recordsIt started working right away. Hope that helps!
When I run
dig -t txt +noall +answer inv.agsft.com
there are no TXT records showing. Since those are required to verify your ownership of the domain, Firebase Hosting will not continue the setup beyond step one.Update: since the next step requires you to map
A
records to the IP addresses of Firebase hosting, I ran the relevantdig
too:Those are not the addresses I'd expect for Firebase Hosting, so it looks like either you haven't correctly entered the
A
records, or they have't propagated yet.The proper solution, ie without disabling Cloudflare for the site, is to use Full SSL for your domain/subdomain.
You can either choose Full SSL for all your domain entries, or set up a Page Rule for a specific subdomain, in your case, use "inv.agsft.com/*"
Source: https://community.cloudflare.com/t/flexible-ssl-redirect-loop-with-google-firebase/2063/3, which in turn points to https://support.cloudflare.com/hc/en-us/articles/115000219871-Why-does-Flexible-SSL-cause-a-redirect-loop-
Had the same issue and this solved the redirect issue. Firebase will however still report the domain as "Needs setup", for that I have no solution, but it does not affect the functionality of the hosting.