aboutsummaryrefslogtreecommitdiffstats
path: root/so-monitoring/so-monitoring-handler/src/main
diff options
context:
space:
mode:
authorwaqas.ikram <waqas.ikram@ericsson.com>2019-03-12 12:25:44 +0000
committerWaqas Ikram <waqas.ikram@ericsson.com>2019-03-12 15:51:40 +0000
commitdbbcde5f8a212c2cc28c8daad43422a81feee368 (patch)
tree3d224ddd4db0faade469d94485400ba1b00fb9a2 /so-monitoring/so-monitoring-handler/src/main
parent308c3c2085864e04848e53a589773ff2e6e2c76a (diff)
Fixing test folder packaging
Change-Id: Id776f95fb316f14b4f493aa20f8b07636e873537 Issue-ID: SO-1335 Signed-off-by: waqas.ikram <waqas.ikram@ericsson.com>
Diffstat (limited to 'so-monitoring/so-monitoring-handler/src/main')
-rw-r--r--so-monitoring/so-monitoring-handler/src/main/java/org/onap/so/monitoring/configuration/rest/CorsConfigurer.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/so-monitoring/so-monitoring-handler/src/main/java/org/onap/so/monitoring/configuration/rest/CorsConfigurer.java b/so-monitoring/so-monitoring-handler/src/main/java/org/onap/so/monitoring/configuration/rest/CorsConfigurer.java
index 0bcf24dbd8..4d0fd443e9 100644
--- a/so-monitoring/so-monitoring-handler/src/main/java/org/onap/so/monitoring/configuration/rest/CorsConfigurer.java
+++ b/so-monitoring/so-monitoring-handler/src/main/java/org/onap/so/monitoring/configuration/rest/CorsConfigurer.java
@@ -30,17 +30,12 @@ import org.springframework.web.filter.CorsFilter;
* @author waqas.ikram@ericsson, eoin.hanan@ericsson.com
*/
@Configuration
-public class CorsConfigurer {
+public class CorsConfigurer {
@Bean
public CorsFilter corsFilter() {
final UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
- final CorsConfiguration config = new CorsConfiguration();
- config.setAllowCredentials(true);
- config.addAllowedOrigin("*");
- config.addAllowedHeader("*");
- config.addAllowedMethod("*");
- source.registerCorsConfiguration("/**", config);
+ source.registerCorsConfiguration("/**", new CorsConfiguration().applyPermitDefaultValues());
return new CorsFilter(source);
}
}