Skip to content

Failed to start Google sign-in Failed to fetch #2218

Description

@DigiDon34

Hi

I tried to self host using the cli commands
I created a Debian VM with docker inside proxmox
Cloudflared to my domain so I have an external URL and adapted it in the Google redirect uri

I first encounter an issue where I could not access the login page
I have to manually correct the .env file from
QUEUE_BACKEND="# bullmq | qstash | internal"
to
QUEUE_BACKEND="internal"

I then struggled to force the url to my domain but used
NEXT_PUBLIC_BASE_URL=https://inbox-zero.digitik.co docker compose --profile all up -d

and it seems to accept it
as confirmed via npx @inbox-zero/cli config
see screenshot

HOWEVER for some reason once I click Accept on the google login I have
Image

Failed to start Google sign-in Failed to fetch
and console mention some calls from internal URL which is nowhere referenced in the .env or yml file.

Access to fetch at 'http://192.168.1.27:3000/api/auth/sign-in/social' from origin 'https://inbox-zero.digitik.co' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

Logs looked fine

Image

What can I do? Couldn't find info about this
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions