mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-13 23:22:10 +08:00
接入萤石摄像头后端优化
This commit is contained in:
@@ -26,6 +26,7 @@ func InitRouter() *transport.HttpServer {
|
||||
// 是否允许跨域
|
||||
if serverConfig.Cors {
|
||||
container.Filter(middleware.Cors(container).Filter)
|
||||
container.Filter(container.OPTIONSFilter)
|
||||
}
|
||||
// 流量限制
|
||||
if serverConfig.Rate.Enable {
|
||||
|
||||
Reference in New Issue
Block a user