优化:优化跨域配置

This commit is contained in:
2022-12-26 23:23:33 +08:00
parent 032eaa54a8
commit 6a7ad96fa3
4 changed files with 93 additions and 6 deletions

View File

@@ -92,4 +92,15 @@ captcha:
--- ### 接口文档配置
springdoc:
swagger-ui:
enabled: false
enabled: false
--- ### 跨域配置
cors:
# 配置允许跨域的域名
allowedOrigins:
- http://cnadmin.charles7c.top
- https://cnadmin.charles7c.top
# 配置允许跨域的请求方式
allowedMethods: '*'
# 配置允许跨域的请求头
allowedHeaders: '*'