How to solve the Cloud Run and Firebase Hosting cookie issue for a Shopify App?

Topic summary

A developer is building an embedded Shopify app using the official starter template and deploying it to Google Cloud Run with Docker. The app works successfully with Cloud Run’s auto-generated URL.

Core Issue:
When attempting to use a custom domain via Firebase Hosting, the installation process fails because Firebase Hosting strips cookies (except __session), breaking the authentication flow that relies on cookies.

Open Questions:

  1. Has anyone successfully resolved the Cloud Run + Firebase Hosting cookie compatibility issue?
  2. Is the app URL visible to users during App Store distribution, or can developers simply use the auto-generated Cloud Run URL without needing a custom domain?

Status: The discussion remains unresolved with no solutions provided yet. Another user has expressed interest in finding a solution to the same problem.

Summarized with AI on October 28. AI used: claude-sonnet-4-5-20250929.

Hi.
We are preparing new embedded Shopify App, we started from “npm init @Shopify_77 /app@latest” and followed all instructions. Because of our existing tech stack we decided to deploy it via Google Cloud Run (with provided Docker file). So far so good, app is working and we are able to connect it to development store.

As a next step we wanted to use custom domain instead of native (auto-generated) Cloud Run url. One of the options is to use Firebase Hosting, the problem is that Firebase Hosting is removing the cookies (all but __session) and installation process of the app can’t be finished (since cookie mechanism is used to forward some auth info). So I have questions:

  1. Does anyway solved the Cloud Run + Firebase Hosting cookie issue?
  2. Is the url of the app visible at any point during distribution using App Store? Maybe we don’t need to care about custom domain and just use auto-generated Cloud Run url?
1 Like

Were you able to resolve this?