Commit b30650b7 authored by Matija Obreza's avatar Matija Obreza

Revert "Revert: Enable CORS origin checks"

This reverts commit d3f85821.
parent 7d9b2596
......@@ -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