Commit 80544e43af3c23ec61ce4e3939cd3a3f619d6cdf
1 parent
4f2a999a
修改前端打包脚本配置
Showing
3 changed files
with
4 additions
and
2 deletions
ruoyi-ui/.env.staging
src/main/java/cn/iocoder/dashboard/framework/security/config/SecurityConfiguration.java
| ... | ... | @@ -114,6 +114,8 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter { |
| 114 | 114 | @Override |
| 115 | 115 | protected void configure(HttpSecurity httpSecurity) throws Exception { |
| 116 | 116 | httpSecurity |
| 117 | + // 开启跨域 | |
| 118 | + .cors().and() | |
| 117 | 119 | // CSRF 禁用,因为不使用 Session |
| 118 | 120 | .csrf().disable() |
| 119 | 121 | // 基于 token 机制,所以不需要 Session | ... | ... |