Fix cross-domain requests.
This commit is contained in:
@@ -72,7 +72,7 @@ Download source code from master branch and put `zabbix` directory into `<your g
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
#### 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).
|
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
|
To fix it add this code to api_jsonrpc.php immediately after the copyright
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user