CORS error when trying to access supabase from a docker container
Hello,
I would like to dockerize a Svelte app that uses Supabase Auth. I am running Supabase CLI locally and the API url is available at
To access this url from within the Docker container I use the
This approach however produces a CORS error when trying to use Auth - see attached screenshot.
I could not find a
In general, what is the recommended practice for using Supabase locally together with a dockerized web app?
Many thanks for the help!
I would like to dockerize a Svelte app that uses Supabase Auth. I am running Supabase CLI locally and the API url is available at
http://localhost:54321To access this url from within the Docker container I use the
http://host.docker.internal:54321 url (https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host)This approach however produces a CORS error when trying to use Auth - see attached screenshot.
I could not find a
cors parameter in the config.toml settings file of Supabase CLI. How can I add/update CORS to include the host.docker.internal origin? In general, what is the recommended practice for using Supabase locally together with a dockerized web app?
Many thanks for the help!


