mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-24 05:00:50 -05:00
Don't know how to use CORS_URL when hosting an instance #360
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @owendswang on GitHub (Jul 20, 2024).
bug description
I'm using docker compose to setup self-hosted service. But the cors restriction blocks me from accessing api url even when CORS_URL is set.
reproduction steps
screenshots
null
links
any url
platform information
additional context
My 'docker-compose.yml' file content:
@wukko commented on GitHub (Jul 20, 2024):
removing the trailing slash at the end of CORS_URL should solve the issue. for your config, it would look like this:
http://192.168.1.6:9001lmk if this helps and if it does, close the issue as completed!
@owendswang commented on GitHub (Jul 22, 2024):
@wukko Thanks. But it does not work. The error remains.
@wukko commented on GitHub (Jul 22, 2024):
is it http or https? make sure the protocol matches
@wukko commented on GitHub (Jul 22, 2024):
can you take a screenshot of your entire browser window with cobalt frontend url, network dev tools tab, and related request visible?
@owendswang commented on GitHub (Jul 22, 2024):
@wukko FYI.
@ihatespawn commented on GitHub (Jul 22, 2024):
is your api at http://192.168.1.6:9000/ or https://192.168.1.6:9000/ ?
if at http://192.168.1.6:9000/, your
docker-compose.ymlfile is set up wrong@owendswang commented on GitHub (Jul 22, 2024):
@ihatespawn It's 'http'. In 'docker-compose.yml' file, it's 'http://192.168.1.6:9000/' too. Why it's requesting 'https'?
.... Oh, I guess it's because I forgot to set API_URL for cobalt-web instance.
Thanks guys!
@owendswang commented on GitHub (Jul 22, 2024):
Thanks guys.