浏览代码

修改前端打包脚本配置

YunaiV 4 年之前
父节点
当前提交
80544e43af

+ 1 - 1
ruoyi-ui/.env.staging

@@ -4,4 +4,4 @@ NODE_ENV = production
 ENV = 'staging'
 
 # 芋道管理系统/测试环境
-VUE_APP_BASE_API = 'http://api.ruoyi-vue-pro.iocoder.cn/stage-api'
+VUE_APP_BASE_API = 'http://api-dashboard.yudao.iocoder.cn'

+ 2 - 0
src/main/java/cn/iocoder/dashboard/framework/security/config/SecurityConfiguration.java

@@ -114,6 +114,8 @@ public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
     @Override
     protected void configure(HttpSecurity httpSecurity) throws Exception {
         httpSecurity
+                // 开启跨域
+                .cors().and()
                 // CSRF 禁用,因为不使用 Session
                 .csrf().disable()
                 // 基于 token 机制,所以不需要 Session

+ 1 - 1
src/main/resources/application.yaml

@@ -3,7 +3,7 @@ spring:
     name: dashboard
 
   profiles:
-    active: dev
+    active: local
 
   # Servlet 配置
   servlet: