fix(doc) caddy cors

approve-sys
bob 2 years ago
parent 1e0e68e685
commit 8bce3cfa54

@ -1,4 +1,5 @@
:8300, localhost { :8300, localhost {
root * /data/dist root * /data/dist
# Vue Router history模式避免刷新后404页面字符中间不可有空格 # Vue Router history模式避免刷新后404页面字符中间不可有空格
try_files {path} /index.html try_files {path} /index.html
@ -9,4 +10,14 @@
reverse_proxy ruoyi-admin:8080 reverse_proxy ruoyi-admin:8080
} }
file_server file_server
encode zstd gzip
# CORS
import CORS
}
(CORS) {
header replace Access-Control-Allow-Origin "*"
header replace Access-Control-Allow-Headers "*"
header replace Access-Control-Allow-Methods "*"
header replace Access-Control-Request-Method "POST, GET, OPTIONS"
} }
Loading…
Cancel
Save