Skip to content

Commit

Permalink
Fix WS Agent not setting appropriate CORS allowed origin on Docker (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuznyetsov authored and skabashnyuk committed Dec 24, 2018
1 parent 5821946 commit bac76ac
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class CheWsAgentCorsAllowedOriginsProvider implements Provider<String> {

@Inject
public CheWsAgentCorsAllowedOriginsProvider(
@Named("che.api") String cheApi,
@Named("che.api.external") String cheApi,
@Nullable @Named("che.wsagent.cors.allowed_origins") String allowedOrigins) {
if (allowedOrigins == null) {
this.allowedOrigins = UriBuilder.fromUri(cheApi).replacePath(null).build().toString();
Expand Down

0 comments on commit bac76ac

Please sign in to comment.