Domoticz error! Cross-Origin?
Posted: Sunday 14 July 2019 8:10
Hi All,
I have domoticz running on my synology and this works perfect.
I want to expand with Dashticz but i can't get it worked i tried different version (master, beta and v3) but it doesn't sort my problem.
Also tried different browers...
i followed the following guide to install:
Steps
* Install/activate WebStation via Package Station
* Install/activate PHP via Package Station
* Via Main Menu -> Web station select your preferred HTTP backend server
(assumption: nginx)
* At the same page verify that an PHP version is activated.
* In "Web station" -> "PHP settings" verify that the curl extension is selected.
* Download the latest Dashticz beta branch and copy the complete branch to the web folder.
* Edit custom/CONFIG.js with the basic settings according the installation instructions on the Wiki
Now Dashticz should run on http://[IP of Synology-nas]/dashticz_v2
Well dashticz does run but i can't get connected with domoticz (get the: Domoticz error!
Please, double check the path to Domoticz in Settings!), the ip adress is absolutely right get the following information when debugged (firefox):
Synchrone XMLHttpRequest op de hoofdthread wordt niet meer ondersteund vanwege de nadelige effecten op de eindgebruikerservaring. Zie http://xhr.spec.whatwg.org/ voor meer informatie jquery.min.js:4:15143
Cross-Origin-aanvraag geblokkeerd: de Same Origin Policy staat het lezen van de externe bron op http://192.168.178.12:8084/json.htm?typ ... order=Name niet toe. (Reden: ontbrekend token ‘content-type’ in CORS-header ‘Access-Control-Allow-Headers’ van CORS-preflight-kanaal).
Cross-Origin-aanvraag geblokkeerd: de Same Origin Policy staat het lezen van de externe bron op http://192.168.178.12:8084/json.htm?typ ... order=Name niet toe. (Reden: CORS-aanvraag is niet gelukt).
Google chrome debugging gives:
(index):1 Access to XMLHttpRequest at 'http://192.168.178.12:8080/json.htm?typ ... order=Name' from origin 'http://192.168.178.12' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
main.js?v=1563084782796:1012 Domoticz error!
Please, double check the path to Domoticz in Settings!
error @ main.js?v=1563084782796:1012
Domoticz error!
Please, double check the path to Domoticz in Settings!
when i open http://192.168.178.12:8084/json.htm?typ ... order=Name in the browser i get all the information from domoticz right....
Can please someone help me with this?
Many thanks in advance,
I have domoticz running on my synology and this works perfect.
I want to expand with Dashticz but i can't get it worked i tried different version (master, beta and v3) but it doesn't sort my problem.
Also tried different browers...
i followed the following guide to install:
Steps
* Install/activate WebStation via Package Station
* Install/activate PHP via Package Station
* Via Main Menu -> Web station select your preferred HTTP backend server
(assumption: nginx)
* At the same page verify that an PHP version is activated.
* In "Web station" -> "PHP settings" verify that the curl extension is selected.
* Download the latest Dashticz beta branch and copy the complete branch to the web folder.
* Edit custom/CONFIG.js with the basic settings according the installation instructions on the Wiki
Now Dashticz should run on http://[IP of Synology-nas]/dashticz_v2
Well dashticz does run but i can't get connected with domoticz (get the: Domoticz error!
Please, double check the path to Domoticz in Settings!), the ip adress is absolutely right get the following information when debugged (firefox):
Synchrone XMLHttpRequest op de hoofdthread wordt niet meer ondersteund vanwege de nadelige effecten op de eindgebruikerservaring. Zie http://xhr.spec.whatwg.org/ voor meer informatie jquery.min.js:4:15143
Cross-Origin-aanvraag geblokkeerd: de Same Origin Policy staat het lezen van de externe bron op http://192.168.178.12:8084/json.htm?typ ... order=Name niet toe. (Reden: ontbrekend token ‘content-type’ in CORS-header ‘Access-Control-Allow-Headers’ van CORS-preflight-kanaal).
Cross-Origin-aanvraag geblokkeerd: de Same Origin Policy staat het lezen van de externe bron op http://192.168.178.12:8084/json.htm?typ ... order=Name niet toe. (Reden: CORS-aanvraag is niet gelukt).
Google chrome debugging gives:
(index):1 Access to XMLHttpRequest at 'http://192.168.178.12:8080/json.htm?typ ... order=Name' from origin 'http://192.168.178.12' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
main.js?v=1563084782796:1012 Domoticz error!
Please, double check the path to Domoticz in Settings!
error @ main.js?v=1563084782796:1012
Domoticz error!
Please, double check the path to Domoticz in Settings!
when i open http://192.168.178.12:8084/json.htm?typ ... order=Name in the browser i get all the information from domoticz right....
Can please someone help me with this?
Many thanks in advance,