-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 restrictions in Workspace Agent #1735
Comments
@evoevodin can you comment? |
@nemusa What I have just done is:
I was able to start a workspace. Can you perhaps elaborate on your particular network config, Swarm cluster, when exactly the error shows up etc? |
The error happens when I open a workspace. An example is when the browser makes the following request:
I have noticed that when Workspace Agent is running on a machine different than Che, it does not set Access-Control-Allow headers. Could you run similar requests to your ws-agent and check what headers are set in response? Differences between Che host and ws-agent hosts:
Example requests
Che and WS-agent on separate machines, headers not set
|
@nemusa so, my test was a bit different since I did not have nginx running on Che instance and workspace agent is communicating with the server using 8080 port. |
@nemusa it might be nginx issue. What happens if you stop nginx, use 8080 port, so that server and agent communicate directly but not through nginx proxy. |
It has turned out that Che 4.4 has solved this problem. Thank you for your help. |
I am running Che server in native mode and Workspace Agent in Docker on separate hosts. When running a workspace, the browser cannot retrieve resources from the Workspace Agent due to CORS restrictions.
Is it possible to configure which domains should be allowed to get resources from the workspace agent?
Observed behavior:
Che version: 4.3.0
OS and version: Linux swarm-manager-staging-1 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u3 (2016-01-17) x86_64 GNU/Linux
Docker version: 1.11.2
Che install: Che server in native mode from zip, Workspace Agent running in Docker
Additional information:
Application settings:
defaults, except of
CHE_DOCKER_MACHINE_HOST: Che public IP
machine.docker.che_api.endpoint=http://my.domain:80/wsmaster/api
The text was updated successfully, but these errors were encountered: