优化跨域配置,默认允许全部跨域
This commit is contained in:
@@ -237,7 +237,7 @@ user-settings:
|
||||
register-again-after-time: 60
|
||||
# 国标续订方式,true为续订,每次注册在同一个会话里,false为重新注册,每次使用新的会话
|
||||
register-keep-int-dialog: false
|
||||
# 跨域配置,配置你访问前端页面的地址即可, 可以配置多个
|
||||
# 跨域配置,不配置此项则允许所有跨域请求,配置后则只允许配置的页面的地址请求, 可以配置多个
|
||||
allowed-origins:
|
||||
- http://localhost:8008
|
||||
- http://192.168.1.3:8008
|
||||
|
||||
@@ -110,10 +110,6 @@ user-settings:
|
||||
auto-apply-play: true
|
||||
# 设备/通道状态变化时发送消息
|
||||
device-status-notify: true
|
||||
# 跨域配置,配置你访问前端页面的地址即可, 可以配置多个
|
||||
allowed-origins:
|
||||
- http://localhost:8080
|
||||
- http://127.0.0.1:8080
|
||||
# [可选] 日志配置, 一般不需要改
|
||||
logging:
|
||||
config: classpath:logback-spring-local.xml
|
||||
|
||||
Reference in New Issue
Block a user