Federation Nextcloud Share file not open on Collabora Online

Here’s what’s happening to me. Two different domains that use Collabora Online (self-host packet), are opening the files correctly. The error that is happening is if I share a file via federation(Nextcloud), Collabora Online gives error when opening the shared file. Is it happening to anyone else?
Screenshot_20220413_194920

Server1 shared file to Server2

Server1:
NC: 22.2.3
CO:21.11.3.4.1

Server2:
NC: 23.0.2
CO:21.11.3.4.1

Log Console Chromium, when the shared file on Server2
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
_onClickFile @ merged-index.js?v=a11100ab-0:4936
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
_onClickFile @ merged-index.js?v=a11100ab-0:4947
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
_onClickFile @ merged-index.js?v=a11100ab-0:4947
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
getActions @ merged-index.js?v=a11100ab-0:3108
getDefaultFileAction @ merged-index.js?v=a11100ab-0:3204
getCurrentDefaultFileAction @ merged-index.js?v=a11100ab-0:3176
_onClickFile @ merged-index.js?v=a11100ab-0:4954
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
getActions @ merged-index.js?v=a11100ab-0:3121
getDefaultFileAction @ merged-index.js?v=a11100ab-0:3204
getCurrentDefaultFileAction @ merged-index.js?v=a11100ab-0:3176
_onClickFile @ merged-index.js?v=a11100ab-0:4954
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
getActions @ merged-index.js?v=a11100ab-0:3127
getDefaultFileAction @ merged-index.js?v=a11100ab-0:3204
getCurrentDefaultFileAction @ merged-index.js?v=a11100ab-0:3176
_onClickFile @ merged-index.js?v=a11100ab-0:4954
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
_notifyUpdateListeners @ merged-index.js?v=a11100ab-0:2967
action @ merged-index.js?v=a11100ab-0:3020
_onClickFile @ merged-index.js?v=a11100ab-0:4957
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
elementToFile @ merged-index.js?v=a11100ab-0:5411
fileList.elementToFile @ merged-index.js?v=a11100ab-0:12407
e.elementToFile @ filesplugin.js:129
e.elementToFile @ share.js:112
getModelForFile @ merged-index.js?v=a11100ab-0:4657
na @ FilesActionHandler.js:31
action @ merged-index.js?v=a11100ab-0:3023
_onClickFile @ merged-index.js?v=a11100ab-0:4957
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
_notifyUpdateListeners @ merged-index.js?v=a11100ab-0:2967
action @ merged-index.js?v=a11100ab-0:3026
_onClickFile @ merged-index.js?v=a11100ab-0:4957
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
_onClickFile @ merged-index.js?v=a11100ab-0:4965
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
Viewer.vue:276 Opening viewer for file /NameFile.xlsx
globals.js:62 $ is deprecated: The global jQuery is deprecated. It will be removed in a later versions without another warning. Please ship your own.
ge @ globals.js:62
get @ globals.js:93
elementToFile @ merged-index.js?v=a11100ab-0:5411
fileList.elementToFile @ merged-index.js?v=a11100ab-0:12407
e.elementToFile @ filesplugin.js:129
e.elementToFile @ share.js:112
getModelForFile @ merged-index.js?v=a11100ab-0:4657
mounted @ Office.vue:178
await in mounted (async)
We @ vue.runtime.esm.js:1863
un @ vue.runtime.esm.js:4235
insert @ vue.runtime.esm.js:3158
D @ vue.runtime.esm.js:6390
vo.nodeOps @ vue.runtime.esm.js:6609
e._update @ vue.runtime.esm.js:3963
r @ vue.runtime.esm.js:4081
bn.get @ vue.runtime.esm.js:4495
bn.run @ vue.runtime.esm.js:4570
yn @ vue.runtime.esm.js:4326
(anonymous) @ vue.runtime.esm.js:1989
et @ vue.runtime.esm.js:1915
Promise.then (async)
Xe @ vue.runtime.esm.js:1942
it @ vue.runtime.esm.js:1999
(anonymous) @ vue.runtime.esm.js:4418
bn.update @ vue.runtime.esm.js:4560
de.notify @ vue.runtime.esm.js:730
set @ vue.runtime.esm.js:1055
Cn.set @ vue.runtime.esm.js:4644
(anonymous) @ Viewer.vue:405
c @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
ka @ viewer-main.js?v=a11100ab-0:2
a @ viewer-main.js?v=a11100ab-0:2
Promise.then (async)
ka @ viewer-main.js?v=a11100ab-0:2
a @ viewer-main.js?v=a11100ab-0:2
(anonymous) @ viewer-main.js?v=a11100ab-0:2
(anonymous) @ viewer-main.js?v=a11100ab-0:2
openFile @ Viewer.vue:363
file @ Viewer.vue:277
We @ vue.runtime.esm.js:1863
bn.run @ vue.runtime.esm.js:4584
yn @ vue.runtime.esm.js:4326
(anonymous) @ vue.runtime.esm.js:1989
et @ vue.runtime.esm.js:1915
Promise.then (async)
Xe @ vue.runtime.esm.js:1942
it @ vue.runtime.esm.js:1999
(anonymous) @ vue.runtime.esm.js:4418
bn.update @ vue.runtime.esm.js:4560
de.notify @ vue.runtime.esm.js:730
set @ vue.runtime.esm.js:1055
value @ Viewer.js:183
na @ FilesActionHandler.js:36
action @ merged-index.js?v=a11100ab-0:3023
_onClickFile @ merged-index.js?v=a11100ab-0:4957
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
capabilities.js:35 OC.getCapabilities is deprecated and will be removed in Nextcloud 21. See @nextcloud/capabilities
getCapabilities @ capabilities.js:35
load @ Office.vue:201
mounted @ Office.vue:184
await in mounted (async)
We @ vue.runtime.esm.js:1863
un @ vue.runtime.esm.js:4235
insert @ vue.runtime.esm.js:3158
D @ vue.runtime.esm.js:6390
vo.nodeOps @ vue.runtime.esm.js:6609
e._update @ vue.runtime.esm.js:3963
r @ vue.runtime.esm.js:4081
bn.get @ vue.runtime.esm.js:4495
bn.run @ vue.runtime.esm.js:4570
yn @ vue.runtime.esm.js:4326
(anonymous) @ vue.runtime.esm.js:1989
et @ vue.runtime.esm.js:1915
Promise.then (async)
Xe @ vue.runtime.esm.js:1942
it @ vue.runtime.esm.js:1999
(anonymous) @ vue.runtime.esm.js:4418
bn.update @ vue.runtime.esm.js:4560
de.notify @ vue.runtime.esm.js:730
set @ vue.runtime.esm.js:1055
Cn.set @ vue.runtime.esm.js:4644
(anonymous) @ Viewer.vue:405
c @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
ka @ viewer-main.js?v=a11100ab-0:2
a @ viewer-main.js?v=a11100ab-0:2
Promise.then (async)
ka @ viewer-main.js?v=a11100ab-0:2
a @ viewer-main.js?v=a11100ab-0:2
(anonymous) @ viewer-main.js?v=a11100ab-0:2
(anonymous) @ viewer-main.js?v=a11100ab-0:2
openFile @ Viewer.vue:363
file @ Viewer.vue:277
We @ vue.runtime.esm.js:1863
bn.run @ vue.runtime.esm.js:4584
yn @ vue.runtime.esm.js:4326
(anonymous) @ vue.runtime.esm.js:1989
et @ vue.runtime.esm.js:1915
Promise.then (async)
Xe @ vue.runtime.esm.js:1942
it @ vue.runtime.esm.js:1999
(anonymous) @ vue.runtime.esm.js:4418
bn.update @ vue.runtime.esm.js:4560
de.notify @ vue.runtime.esm.js:730
set @ vue.runtime.esm.js:1055
value @ Viewer.js:183
na @ FilesActionHandler.js:36
action @ merged-index.js?v=a11100ab-0:3023
_onClickFile @ merged-index.js?v=a11100ab-0:4957
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
viewer-main.js?v=a11100ab-0:2 Refused to frame ‘https://domain-NC-Server1/’ because it violates the following Content Security Policy directive: “frame-src ‘self’ https://domain-CO-Server1”.

VM1354:6774 crbug/1173575, non-JS module files deprecated.
(anonymous) @ VM1354:6774
20util.js:135 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment
relativeModifiedDate @ util.js:135
(anonymous) @ init.js:101
each @ jquery.js:354
each @ jquery.js:189
(anonymous) @ init.js:100
setInterval (async)
se @ init.js:99
(anonymous) @ main.js:41
Office.vue:198 FAILED
(anonymous) @ Office.vue:198
setTimeout (async)
load @ Office.vue:197
mounted @ Office.vue:184
await in mounted (async)
We @ vue.runtime.esm.js:1863
un @ vue.runtime.esm.js:4235
insert @ vue.runtime.esm.js:3158
D @ vue.runtime.esm.js:6390
vo.nodeOps @ vue.runtime.esm.js:6609
e._update @ vue.runtime.esm.js:3963
r @ vue.runtime.esm.js:4081
bn.get @ vue.runtime.esm.js:4495
bn.run @ vue.runtime.esm.js:4570
yn @ vue.runtime.esm.js:4326
(anonymous) @ vue.runtime.esm.js:1989
et @ vue.runtime.esm.js:1915
Promise.then (async)
Xe @ vue.runtime.esm.js:1942
it @ vue.runtime.esm.js:1999
(anonymous) @ vue.runtime.esm.js:4418
bn.update @ vue.runtime.esm.js:4560
de.notify @ vue.runtime.esm.js:730
set @ vue.runtime.esm.js:1055
Cn.set @ vue.runtime.esm.js:4644
(anonymous) @ Viewer.vue:405
c @ runtime.js:63
(anonymous) @ runtime.js:294
(anonymous) @ runtime.js:119
ka @ viewer-main.js?v=a11100ab-0:2
a @ viewer-main.js?v=a11100ab-0:2
Promise.then (async)
ka @ viewer-main.js?v=a11100ab-0:2
a @ viewer-main.js?v=a11100ab-0:2
(anonymous) @ viewer-main.js?v=a11100ab-0:2
(anonymous) @ viewer-main.js?v=a11100ab-0:2
openFile @ Viewer.vue:363
file @ Viewer.vue:277
We @ vue.runtime.esm.js:1863
bn.run @ vue.runtime.esm.js:4584
yn @ vue.runtime.esm.js:4326
(anonymous) @ vue.runtime.esm.js:1989
et @ vue.runtime.esm.js:1915
Promise.then (async)
Xe @ vue.runtime.esm.js:1942
it @ vue.runtime.esm.js:1999
(anonymous) @ vue.runtime.esm.js:4418
bn.update @ vue.runtime.esm.js:4560
de.notify @ vue.runtime.esm.js:730
set @ vue.runtime.esm.js:1055
value @ Viewer.js:183
na @ FilesActionHandler.js:36
action @ merged-index.js?v=a11100ab-0:3023
_onClickFile @ merged-index.js?v=a11100ab-0:4957
Xe @ _executeBound.js:8
(anonymous) @ bind.js:10
(anonymous) @ restArguments.js:16
dispatch @ jquery.js:5183
g.handle @ jquery.js:4991
20util.js:135 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment
relativeModifiedDate @ util.js:135
(anonymous) @ init.js:101
each @ jquery.js:354
each @ jquery.js:189
(anonymous) @ init.js:100
setInterval (async)
se @ init.js:99
(anonymous) @ main.js:41

@00tiagopolicarpo00 thanks for the report. can you share collabora online logs ? make sure that you correctly setup multihost configuration
If you are using docker you have to pass aliasgroups env variables: CODE Docker image — SDK https://sdk.collaboraonline.com/ documentation

This may be helpful: Adding CSP support for federated servers by ThibautPlg · Pull Request #2105 · nextcloud/richdocuments · GitHub ?