mirror of
https://github.com/halejohn/Cloudreve.git
synced 2026-01-26 09:34:57 +08:00
Fix: cors middleware should be applied directly to root router
This commit is contained in:
@@ -111,6 +111,7 @@ func (service *SingleFileService) CreateDocPreviewSession(ctx context.Context, c
|
||||
}
|
||||
|
||||
// 生成最终的预览器地址
|
||||
// TODO 从配置文件中读取
|
||||
viewerBase, _ := url.Parse("https://view.officeapps.live.com/op/view.aspx")
|
||||
params := viewerBase.Query()
|
||||
params.Set("src", downloadURL)
|
||||
|
||||
Reference in New Issue
Block a user