ONLYOFFICE / onlyoffice-nextcloud

The app which enables the users to edit office documents from Nextcloud using ONLYOFFICE Document Server, allows multiple users to collaborate in real time and to save back those changes to Nextcloud
GNU Affero General Public License v3.0
565 stars 161 forks source link

Onlyoffce doesn't allow opening Cliparts and Photo editor in Nextcloud 16 #186

Closed e-alfred closed 4 years ago

e-alfred commented 5 years ago

Hello,

I am running Nextcloud 16.0.1 and Onlyoffice 5.2.8 with the Onlyoffice Nextcloud app 2.1.10 and I am getting an error everytime I try to connect to the Picture editor and the Clipart search showing Error getting assets. Please check your authentication parameters. and Error has occured when loading data.

I am getting the following errors in the browser console:

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://openclipart.org/search/json/?query=play&amount=20&page=1. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).[Learn More]
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://d42hh4005hpu.cloudfront.net/hires/assets?platform=web&apiKey=1234567&resolution=low&sdkVersion=4.3.1. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).[Learn More]

2VM919 feathercontrols_de.js:6 GET https://d42hh4005hpu.cloudfront.net/hires/assets?platform=web&apiKey=1234567&resolution=low&sdkVersion=4.3.1 503 (Service Unavailable)
send @ VM919 feathercontrols_de.js:6
ajax @ VM919 feathercontrols_de.js:6
n @ VM891 editor.js:1
p @ VM891 editor.js:1
(anonymous) @ VM891 editor.js:1
r @ VM891 editor.js:1
n.ControlsWidget.setupScrollPanels @ VM891 editor.js:2
(anonymous) @ VM891 editor.js:1
setTimeout (async)
nextFrame @ VM891 editor.js:1
n.paintWidgetLauncher_HTML @ VM891 editor.js:1
n.paintWidgetLauncher @ VM891 editor.js:1
u @ VM891 editor.js:2
setTimeout (async)
nextFrame @ VM891 editor.js:1
i.launch @ VM891 editor.js:2
onLoad @ VM889 photoeditor.js:57
e @ VM891 editor.js:2
n.loadStageFinal @ VM891 editor.js:2
setTimeout (async)
nextFrame @ VM891 editor.js:1
s @ VM891 editor.js:2
p @ VM919 feathercontrols_de.js:3
fireWith @ VM919 feathercontrols_de.js:3
ready @ VM919 feathercontrols_de.js:3
setTimeout (async)
bindReady @ VM919 feathercontrols_de.js:3
ready @ VM919 feathercontrols_de.js:3
init @ VM919 feathercontrols_de.js:3
s @ VM919 feathercontrols_de.js:3
(anonymous) @ VM919 feathercontrols_de.js:3
(anonymous) @ VM919 feathercontrols_de.js:3
(anonymous) @ VM919 feathercontrols_de.js:6
(anonymous) @ VM919 feathercontrols_de.js:115
index.html:1 Access to XMLHttpRequest at 'https://d42hh4005hpu.cloudfront.net/hires/assets?platform=web&apiKey=1234567&resolution=low&sdkVersion=4.3.1' from origin 'https://server' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
2jquery.min.js:4 GET https://openclipart.org/search/json/?query=play&amount=20&page=1 404
send @ jquery.min.js:4
ajax @ jquery.min.js:4
loadClipArtPage @ clipart.js:183
window.Asc.plugin.init @ clipart.js:303
u.plugin_onMessage @ VM962:1
onMessage @ pluginBase.js:108
postMessage (async)
jd @ sdk-all.js:9976
f @ sdk-all.js:9962
postMessage (async)
u.plugin_sendMessage @ VM962:1
(anonymous) @ VM962:1
(anonymous) @ VM962:1
onMessage @ pluginBase.js:125
postMessage (async)
f @ sdk-all.js:9963
postMessage (async)
xhr.onload @ pluginBase.js:95
load (async)
window.onload @ pluginBase.js:54
load (async)
(anonymous) @ pluginBase.js:46
(anonymous) @ pluginBase.js:172

index.html:1 Access to XMLHttpRequest at 'https://openclipart.org/search/json/?query=play&amount=20&page=1' from origin 'https://server' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
ShockwaveNN commented 5 years ago

@e-alfred Hi, clipart problem is in Third-Party service we use - openclipart.org (https://twitter.com/openclipart/status/1124311068233359367) And about Photo Editor there is https://github.com/ONLYOFFICE/sdkjs-plugins/issues/50

LinneyS commented 4 years ago

The clipart plugin is closed. Photo editor rewritten CORS problem will not happen again.