Commit d3f85821 authored by Matija Obreza's avatar Matija Obreza

Revert: Enable CORS origin checks

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