mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-09-10 08:57:14 +08:00
优化:优化跨域配置
This commit is contained in:
@@ -104,4 +104,17 @@ captcha:
|
||||
--- ### 接口文档配置
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
enabled: true
|
||||
enabled: true
|
||||
|
||||
--- ### 跨域配置
|
||||
cors:
|
||||
# 配置允许跨域的域名
|
||||
allowedOrigins:
|
||||
- http://127.0.0.1:5173
|
||||
- http://localhost:5173
|
||||
- http://cnadmin.charles7c.top
|
||||
- https://cnadmin.charles7c.top
|
||||
# 配置允许跨域的请求方式
|
||||
allowedMethods: '*'
|
||||
# 配置允许跨域的请求头
|
||||
allowedHeaders: '*'
|
||||
|
@@ -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