放开跨域
This commit is contained in:
parent
804ceba007
commit
a259b0adbd
@ -41,6 +41,7 @@ public class AuthClientSecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
.and()
|
.and()
|
||||||
.logout().logoutSuccessUrl(authServer.getOauthLogout())
|
.logout().logoutSuccessUrl(authServer.getOauthLogout())
|
||||||
.and()
|
.and()
|
||||||
|
// .authorizeRequests().antMatchers("/app/**", "/resource/**", "/route/file/**", "/assets/**","/route/bigdata/**", "/route/populationinfo-data/**",
|
||||||
.authorizeRequests().antMatchers("/app/**", "/resource/**", "/route/file/**", "/assets/**","/route/bigdata/**",
|
.authorizeRequests().antMatchers("/app/**", "/resource/**", "/route/file/**", "/assets/**","/route/bigdata/**",
|
||||||
"/api/**").permitAll()
|
"/api/**").permitAll()
|
||||||
.and()
|
.and()
|
||||||
@ -48,7 +49,7 @@ public class AuthClientSecurityConfig extends WebSecurityConfigurerAdapter {
|
|||||||
.anyRequest()
|
.anyRequest()
|
||||||
.access("@clientRbacService.hasPermission(request, authentication)")
|
.access("@clientRbacService.hasPermission(request, authentication)")
|
||||||
.and()
|
.and()
|
||||||
.headers().frameOptions().sameOrigin()
|
.headers().frameOptions().disable()
|
||||||
.and()
|
.and()
|
||||||
.cors()
|
.cors()
|
||||||
.and()
|
.and()
|
||||||
|
Loading…
Reference in New Issue
Block a user