Skip to content

Commit

Permalink
添加 Gzip 功能 修复 Cors 跨域
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmr-bot committed Apr 30, 2023
1 parent 4b52d12 commit 86c040b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,15 @@ path = "/a"
domain = "b.com"
path = "/b/article"

[cors]
allow_all_origins = true
# 此项为 true 时,下方无效
allow_origins = ["http://localhost:8080", "http://example.com"]
allow_methods = ["GET", "POST", "PUT", "DELETE", "OPTIONS"]
allow_headers = ["Content-Type", "Authorization"]
allow_credentials = false
expose_headers = []

[debug]
debug= false
# 调试模式
Expand Down

0 comments on commit 86c040b

Please sign in to comment.