OCSInventory-NG / OCSInventory-Server

Communication server of OCS Inventory
http://www.ocsinventory-ng.org/
GNU General Public License v2.0
340 stars 138 forks source link

I have a problem, unable to make API calls on my OCSInventory #416

Closed iamfauzi16 closed 1 year ago

iamfauzi16 commented 1 year ago

It's hard to solve a problem when important details are missing, that why we added this template, to help you and us.

General informations

Operating system : Ubuntu 22.04

Server informations

Perl version : v5.30.0 Mysql / Mariadb / Percona version : 10.3.37

OCS Inventory informations

Ocs server version : 2.11.0

Problem's description

Describe your problem here

I have a task to fetch information from my ocsinventory by using API. but I have difficulty configuring it. of the existing documentation is very minimal references.

the problem I'm facing right now when I follow the documentation the error is forbidden 403. image

can you help me to solve my problem?

Thank you

charleneauger commented 1 year ago

Hi @iamfauzi16 ,

By default, in the api conf file (zz-ocsinventory-restapi.conf) we required by ip. Edit the conf file and comment Require ip 127.0.0.1, save and restart apache.

Best regards, Charlene

iamfauzi16 commented 1 year ago

This's work! thank yo @charleneauger