'Problem loading the website using Firebase when using Burp Proxy

Let's say I use the website: redacted.com
Website works fine when I am using it normally.
When I start using BURP SUITE PROXY to intercept requests, I start to have this error:

IMAGE-WITH-ERROR

[2021-04-14T02:45:46.724Z]  @firebase/firestore: Firestore (7.24.0): Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds.
This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.
Error: Uncaught (in promise): FirebaseError: [code=unavailable]: Failed to get document because the client is offline.

Please provide me the solution to this.



Solution 1:[1]

Workaround for this issue (source).

For Burp, the following match and replace worked for me:

this.experimentalForceLongPolling=!!t.experimentalForceLongPolling

to

this.experimentalForceLongPolling=true

This can change depending on the version of firebase-js-sdk so it's best to look around for experimentalForceLongPolling within your JS files and make sure it gets enabled.

Solution 2:[2]

Using the idea of this troubleshoot (https://github.com/firebase/firebase-js-sdk/issues/1190#), i made the following Match and Replace in my Burp Suite and it worked!

this.forceLongPolling=void 0!==t.experimentalForceLongPolling&&t.experimentalForceLongPolling

to

this.forceLongPolling=true

And someone said before

This can change depending on the version of firebase-js-sdk so it's best to look around for experimentalForceLongPolling within your JS files and make sure it gets enabled.

Solution 3:[3]

Faced the same issue. What worked for me is adding “firestore.googleapis.com” to the “No proxy for” option in Firefox’s proxy configuration.

Firefox Proxy Configuration

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Jeremy Caney
Solution 2 Victor Matuk
Solution 3 Jinson