mirror of
https://github.com/cloudreve/Cloudreve.git
synced 2026-11-17 22:58:07 +00:00
Fix: cors middleware should be applied directly to root router
This commit is contained in:
1 parent
ac2de841d2
commit
b5ee3ee609
4 files changed
+8
-10
No files matched your search
@@ -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