Skip to content

Commit ee4e78f

Browse files
committed
修正
1 parent 8988c5b commit ee4e78f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aidijing-restful-client/src/main/java/com/aidijing/config/SpringSecurityConfig.java

+2
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ protected void configure ( HttpSecurity httpSecurity ) throws Exception {
5151
httpSecurity
5252
// jwt不需要csrf
5353
.csrf().disable()
54+
// cors 支持
55+
.cors().and()
5456
// jwt不需要session , 所以不创建会话
5557
.sessionManagement().sessionCreationPolicy( SessionCreationPolicy.STATELESS ).and()
5658
// 异常处理

0 commit comments

Comments
 (0)