Commit a51ab94a authored by Noel Alonso's avatar Noel Alonso
Browse files

Añade cors filter

parent 165d8ae9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ public class Oauth2SecurityConfiguration {
		public void configure(HttpSecurity http) throws Exception {
			// @formatter:off
			
			http.anonymous().and().authorizeRequests().antMatchers("/user/actuator/**").permitAll()
			http.cors().and().anonymous().and().authorizeRequests().antMatchers("/user/actuator/**").permitAll()
					.antMatchers(HttpMethod.OPTIONS, "/**/").permitAll()
					.antMatchers(HttpMethod.GET, "/user/profile/").permitAll()
					.antMatchers(HttpMethod.GET, "/user/modules/openmodules/").permitAll()