-
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
Che Theia - CORS issue when Theia IDE client side browser trying to reach Che master #11240
Comments
I see 2 ways of fixing it:
|
@sunix why is this happening for theia and was not with GWT based IDE? I mean none of the solutions you are proposing is ideal, why can't we do it the GWT way? |
@l0rd GWT app was hosted by che master |
@sunix would it help if we enable CORS https://github.com/eclipse/che/blob/master/core/che-core-api-core/src/main/java/org/eclipse/che/api/core/cors/CheCorsFilter.java for factories? |
@skabashnyuk yes and no
IMHO, we have to find a common way to fix all of them. BTW, most of these calls are to retrieve machine definition. |
I would say that if extensions were plug-ins, then they would call APIs from server-side and then it won't hit CORS. So if extension is still mandatory, they should use a server-side service. |
@benoitf thanks so maybe we could start moving factory extension to a plugin. It has to be done sooner or later anyway. |
@sunix do we know which APIs are missing to convert factory extension to plugin? |
|
The problem should be fixed by #11306 |
It is fixed as far as I know |
Description
It happens that in some cluster configuration, Che Theia IDE is not located in the same location and when we are trying to reach Che master API from the browser, we encounter CORS issue like
The text was updated successfully, but these errors were encountered: