Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-8459

Zabbix API doesn't support OPTION request when API client does CORS

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.2.4
    • Fix Version/s: 2.3.3
    • Component/s: API (A)
    • Labels:
    • Environment:
      firefox 30+

      Description

      When accessing the api throug javascript form another domain the client does an HTTP OPTION request to determine the CORS rules on the server the API is running on.
      SInce this request has the wrong content type a 412 error code is returned by the API.

      Please allow OPTION requests with all content types so the zabbix API can be access through javascript hosted on another domain than the API.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                evsnow Erwin Vrolijk
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: