fix: 修复跨域配置

11111
winter 1 year ago
parent fb49fea68e
commit f2e0c0b19e

@ -37,6 +37,8 @@ public class SecurityConfiguration {
http
// CSRF禁用因为不使用session
.csrf().disable()
.cors().configurationSource(corsConfigurationSource())
.and()
// 禁用HTTP响应标头
.headers().cacheControl().disable()
.and()

Loading…
Cancel
Save