|
|
@@ -4,6 +4,7 @@ import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.http.HttpMethod;
|
|
|
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
|
|
|
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
|
|
|
+import org.springframework.security.config.annotation.web.builders.WebSecurity;
|
|
|
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
|
|
|
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
|
|
|
import org.springframework.security.config.http.SessionCreationPolicy;
|
|
|
@@ -36,4 +37,8 @@ class WebSecurityConfig extends WebSecurityConfigurerAdapter {
|
|
|
httpSecurity.headers().cacheControl();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void configure(WebSecurity web) throws Exception{
|
|
|
+ web.ignoring().antMatchers( HttpMethod.OPTIONS, "/**" );
|
|
|
+ }
|
|
|
}
|