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

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.2.4
    • 2.3.3
    • API (A)
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: