Fix cross-domain requests.

This commit is contained in:
Alexander Zobnin
2015-05-20 01:04:26 +03:00
parent 9a197e8f50
commit 22d4120d11

View File

@@ -72,7 +72,7 @@ Download source code from master branch and put `zabbix` directory into `<your g
![2015-05-18 12-46-03 grafana - zabbix org - mozilla firefox](https://cloud.githubusercontent.com/assets/4932851/7678429/b42a9cda-fd5c-11e4-84a3-07aa765769d3.png)
#### Note for Zabbix 2.2 or before
#### Note for Zabbix 2.2 or less
Zabbix API (api_jsonrpc.php) before zabbix 2.4 don't allow cross-domain requests (CORS). And you can get HTTP error 412 (Precondition Failed).
To fix it add this code to api_jsonrpc.php immediately after the copyright
```