Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CORS Issue #539

Open
gf-atebbe opened this issue Dec 20, 2018 · 1 comment
Open

CORS Issue #539

gf-atebbe opened this issue Dec 20, 2018 · 1 comment

Comments

@gf-atebbe
Copy link

I'm trying to run the job manager UI in a separate Docker container from the Cromwell server. The two containers are running on the same host, and I link the two when I launch the job manager UI container.

docker run -d -p 80:80 --link cromwell:cromwell --name cromwell-ui myregistry/cromwell-ui:0.4.1

When I load the job manager UI, I am immediately running into a CORS issue. I tried adding the CORS headers to the nginx server running the job manager UI, but I believe it is the Cromwell server itself that needs to have CORS disabled. Is there any way to do this so that the UI will work? I also tried disabling CORS in the browser but I continue to get this error message.
screen shot 2018-12-20 at 6 03 08 am

Access to XMLHttpRequest at 'http://10.66.49.137:8000/api/workflows/v1/capabilities' from origin 'http://10.66.49.137' 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.

@calbach
Copy link
Contributor

calbach commented Dec 20, 2018

The CORS issue is with the UI -> job manager API (a shim on Cromwell). AFAICT this isn't a supported configuration for Cromwell, but it would be easy enough to add support (something similar to

if args.allow_origins:
). Alternatively you can run with docker-compose which will put the UI and API behind the same port.

I'm not sure what the latest intended/supported configurations for a Cromwell deployment. @ruchim or @rexwangcc may know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants