hi, onlyoffice community, I am trying to integrate xwiki with onlyoffice doc.
config = {
document: {
fileType: 'docx',
key: 'empty.docx',
title: 'empty.docx',
url: 'http://admin:#Fgglgy0223@172.25.161.211:8080/xwiki/bin/download/OnlyOffice/wordtest/WebHome/empty.docx?rev=1.1'
},
editorConfig: {
callbackUrl: 'http://172.25.161.211/example/track?filename=${DOC_NAME}&useraddress=172.30.7.4',
customization: {
autosave: false,
chat: false,
comments: false,
forcesave: true
},
lang: 'zh',
location: 'cn'
},
height: '600px',
documentType: 'word'
}
var docEditor = new DocsAPI.DocEditor('onlyoffice-container', config)
the problem is I want the document editing service download attachment file directly from xwiki, but the attachment url need http basic auth, I tried embed username and password in url, but faild, I also find there is no option to specify auth headers.
please help