Commit 91b93b70 authored by femiadeyemi's avatar femiadeyemi
Browse files

add PATCH method and cloud.helmholtz.de domain for CORS

parent 25fbf53b
Pipeline #59821 passed with stages
in 9 minutes and 46 seconds
......@@ -37,7 +37,7 @@ public class CerebrumSecurityConfig extends WebSecurityConfigurerAdapter
{
CorsConfiguration configuration = new CorsConfiguration();
configuration.setAllowedOrigins(allowedOrigins);
configuration.setAllowedMethods(Arrays.asList("GET","DELETE","PUT","POST", "OPTIONS"));
configuration.setAllowedMethods(Arrays.asList("GET","DELETE","PUT","POST","PATCH","OPTIONS"));
configuration.setAllowedHeaders(Arrays.asList("Authorization", "Cache-Control", "Content-Type"));
UrlBasedCorsConfigurationSource source = new UrlBasedCorsConfigurationSource();
source.registerCorsConfiguration("/**", configuration);
......
cerebrum:
allowed:
origins: http://hifis-tp.desy.de
origins: https://hifis-tp.desy.de https://cloud.helmholtz.de
logging:
level:
......
......@@ -3,7 +3,7 @@ cerebrum:
oauth2-token: ${token:notoken}
version: @project.version@
allowed:
origins: https://localhost:8080
origins: http://localhost:8080
logging:
level:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment