mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-11-09 06:57:18 +08:00
优化:优化跨域配置
This commit is contained in:
@@ -92,4 +92,15 @@ captcha:
|
||||
--- ### 接口文档配置
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
enabled: false
|
||||
enabled: false
|
||||
|
||||
--- ### 跨域配置
|
||||
cors:
|
||||
# 配置允许跨域的域名
|
||||
allowedOrigins:
|
||||
- http://cnadmin.charles7c.top
|
||||
- https://cnadmin.charles7c.top
|
||||
# 配置允许跨域的请求方式
|
||||
allowedMethods: '*'
|
||||
# 配置允许跨域的请求头
|
||||
allowedHeaders: '*'
|
||||
|
||||
Reference in New Issue
Block a user