修改前端打包脚本配置

This commit is contained in:
YunaiV 2021-02-20 14:50:26 +08:00
parent 4f2a999abb
commit 80544e43af
3 changed files with 4 additions and 2 deletions

View File

@ -4,4 +4,4 @@ NODE_ENV = production
ENV = 'staging' 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'

View File

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

View File

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