Why does Firefox phone emulation return an instant 504 through Istio?

August 2, 2026 2 answers
Asked by dough.rests.here
My frontend and backend work normally in every browser, and the same application also works when I emulate a phone in Chrome. However, requests sent while using Firefox's phone emulation immediately return a 504 Gateway Timeout. The identical request succeeds in another browser tab. The services run on Kubernetes behind Istio using a VirtualService and Gateway with otherwise standard routing. What could cause Firefox's emulated requests to fail this way?

Answers

chessboard+setup
An immediate 504 usually means the response is being generated by the Istio or Envoy proxy rather than by the backend timing out. Check the istio-proxy access log for the exact request and inspect Envoyโ€™s response flag, such as UC, UF, or NR. That can show whether the route was not matched, the upstream connection failed, or the request was rejected before reaching the service.
Reply to this answer
moth census+
Compare the complete Firefox and Chrome requests, including headers, protocol details, and whether either one uses SSL differently. Firefox may be sending something that the proxy handles differently. Itโ€™s also worth checking for an OPTIONS preflight, although if no OPTIONS request is being sent, focus on the actual request and the Envoy logs rather than CORS.

dough.rests.here: I checked for a preflight request, but Firefox isnโ€™t sending an OPTIONS request in this case.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions