Skip to content

Commit 4a7793f

Browse files
🐯 优化cors
1 parent 61d5396 commit 4a7793f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deploy/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pwd
5252

5353
# 2. maven打包
5454
mvn clean
55-
mvn clean package -Ptest
55+
mvn package -Ptest
5656

5757
# 3. 停服
5858
cd ..

src/main/resources/config/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ spring-boot-plus:
9494
# 允许访问的源
9595
allowed-origins: '*'
9696
# 允许访问的请求头
97-
allowed-headers: content-type,token
97+
allowed-headers: x-requested-with,content-type,token
9898
# 是否允许发送cookie
9999
allow-credentials: true
100100
# 允许访问的请求方式

0 commit comments

Comments
 (0)