Commit d3f85821 authored by Matija Obreza's avatar Matija Obreza

Revert: Enable CORS origin checks

parent d4c2028c
...@@ -109,10 +109,10 @@ public class OAuth2ServerConfig { ...@@ -109,10 +109,10 @@ public class OAuth2ServerConfig {
protected class ResourceServerConfiguration extends ResourceServerConfigurerAdapter { protected class ResourceServerConfiguration extends ResourceServerConfigurerAdapter {
// OAuth2 CORS Origin header checker // OAuth2 CORS Origin header checker
@Bean // @Bean
public OAuthClientOriginCheckFilter clientOriginCheckFilter() { // public OAuthClientOriginCheckFilter clientOriginCheckFilter() {
return new OAuthClientOriginCheckFilter(); // return new OAuthClientOriginCheckFilter();
} // }
@Override @Override
public void configure(final ResourceServerSecurityConfigurer resources) { public void configure(final ResourceServerSecurityConfigurer resources) {
...@@ -164,7 +164,7 @@ public class OAuth2ServerConfig { ...@@ -164,7 +164,7 @@ public class OAuth2ServerConfig {
; ;
/*@formatter:on*/ /*@formatter:on*/
http.addFilterAfter(clientOriginCheckFilter(), AbstractPreAuthenticatedProcessingFilter.class); // http.addFilterAfter(clientOriginCheckFilter(), AbstractPreAuthenticatedProcessingFilter.class);
} }
} }
......
Markdown is supported
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