Hey there! I'm having a pretty rough time getting ...
# getting-started
s
Hey there! I'm having a pretty rough time getting Meltano running on DigitalOcean App Platform. I feel like I'm configuring my ui correctly, and it's running, but I'm running into the same CORS issues regardless of the combination of
MELTANO_UI_SESSION_COOKIE_DOMAIN
MELTANO_UI_SERVER_NAME
and related env vars I set.
meltano ui setup APP_HOST
doesn't seem to help either. As far as setup goes, I'm just deploying a
meltano/meltano:latest
image with some extra steps to copy in my configs (nothing weird). Also probably not the root of the issue, but I'm also getting
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <https://data-eng-jbk9t.ondigitalocean.app/api/v1/plugins/installed>. (Reason: header 'x-json-scheme' is not allowed according to header 'Access-Control-Allow-Headers' from CORS preflight response).
weirdness in the console.
Do the requests even have to be made in CORS mode? Is there a way to disable it?
d
@sam_mccord You’re seeing CORS because apparently the domain that hosts the webapp is not the same as the domain being connected with to reach the API. Are you accessing the app at
<https://data-eng-jbk9t.ondigitalocean.app>
?
s
I am, but I can also visit https://data-eng-jbk9t.ondigitalocean.app/api/v1/plugins/installed should I not be able to if the api is on a different domain?
I seem to have figured it out, I think the key was
MELTANO_UI_FORWARDED_ALLOW_IPS
*
somehow I overlooked that part of the docs (which are very good by the way, so thank you for that). I'll just homer into bushes gif away now, but appreciate you guys very excited about what we can do with it.
d
Glad you figured it out! Let us know if we can help we anything else 🙂