From 10f3d6fa0a601e40207da109cc88532559ec01ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20de=20la=20R=C3=BAa=20Mart=C3=ADnez?= Date: Wed, 20 Oct 2021 20:54:40 +0200 Subject: [PATCH] Enable CORS (#669) --- .../hopsworks/rest/application/config/ApplicationConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hopsworks-api/src/main/java/io/hops/hopsworks/rest/application/config/ApplicationConfig.java b/hopsworks-api/src/main/java/io/hops/hopsworks/rest/application/config/ApplicationConfig.java index dcf53f8f91..a440f53505 100644 --- a/hopsworks-api/src/main/java/io/hops/hopsworks/rest/application/config/ApplicationConfig.java +++ b/hopsworks-api/src/main/java/io/hops/hopsworks/rest/application/config/ApplicationConfig.java @@ -134,8 +134,8 @@ public ApplicationConfig() { register(io.hops.hopsworks.api.opensearch.OpenSearchResource.class); //uncomment to allow Cross-Origin Resource Sharing - // register(io.hops.hopsworks.filters.AllowCORSFilter.class); - + register(io.hops.hopsworks.filters.AllowCORSFilter.class); + //swagger register(io.swagger.jaxrs.listing.ApiListingResource.class); register(io.swagger.jaxrs.listing.SwaggerSerializers.class);