Commit 80544e43af3c23ec61ce4e3939cd3a3f619d6cdf

Authored by YunaiV
1 parent 4f2a999a

修改前端打包脚本配置

ruoyi-ui/.env.staging
... ... @@ -4,4 +4,4 @@ NODE_ENV = production
4 4 ENV = 'staging'
5 5  
6 6 # 芋道管理系统/测试环境
7   -VUE_APP_BASE_API = 'http://api.ruoyi-vue-pro.iocoder.cn/stage-api'
  7 +VUE_APP_BASE_API = 'http://api-dashboard.yudao.iocoder.cn'
... ...
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
... ...
src/main/resources/application.yaml
... ... @@ -3,7 +3,7 @@ spring:
3 3 name: dashboard
4 4  
5 5 profiles:
6   - active: dev
  6 + active: local
7 7  
8 8 # Servlet 配置
9 9 servlet:
... ...