Official Google Plugin doesn't work behind a reverse proxy

Hi all,

I am working on a website that needs to be whitelabeled across multiple subdomains and paths (for SEO purposes). As a result, I spent some time setting up a reverse proxy so that I could intercept and adapt the pages accordingly. Most everything works except for the Official Google Auth Plugin.

What is happening?

  • The Google OAuth flow works as normal and returns back to my login page with proper query parameters.
  • The call to /workflow/start returns an error:

{“1716738976677x723224322502094700”:{“outcome”:“error”,“error”:{“error_class”:“UnexpectedError”,“args”:{“code”:“1716738976680x359382079617276400”},“message”:“Sorry, we ran into a temporary bug and can’t complete your request. We’ll fix it as soon as we can; please try again in a bit!”}},“object_updates”:{},“bubble_session_uid”:“1716695020209x414967288804504800”}

I’ve tried changing headers, payload to match without the proxy, but still can’t get it to work. Not sure if the Bubble Google Plugin is looking for something explicitly, however, now I am considering moving the entire backend off to firebase if I can’t get the auth to work.

I’ve tried CoAlias as well, but the login page is also broken.

Any help would be greatly appreciated. Thanks!

1 Like