Ad Widget

Collapse

Unable to send request to Zabbix API: Cross-Origin Request Blocked

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tayf-emrah
    Junior Member
    • Dec 2021
    • 1

    #1

    Unable to send request to Zabbix API: Cross-Origin Request Blocked

    I am using Zabbix version 4.4. When I send request to Zabbix API (api_jsonrpc.php) with Axios, I get "Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at http://localhost:1234/api_jsonrpc.php. (Reason: Did not find method in CORS header 'Access-Control-Allow-Methods')" error. How can I get around this problem when importing data from Zabbix with my Vue 3 project?
  • Glencoe
    Zabbix developer
    • Oct 2019
    • 152

    #2
    This question is about web programming and doesn't seem to be related to Zabbix troubleshooting. I think you'll find a solution faster by checking StackOverflow or programming forums.

    Comment

    • cyber
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Dec 2006
      • 4807

      #3
      Sounds more like Axios error, than Zabbix.

      Comment

      Working...