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:

[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.
Workaround for this issue (source).
For Burp, the following match and replace worked for me:
to
This can change depending on the version of
firebase-js-sdkso it's best to look around forexperimentalForceLongPollingwithin your JS files and make sure it gets enabled.