Error when trying to access PAPI in 4.2

Document ID : KB000116948
Last Modified Date : 04/10/2018
Show Technical Document Details
When making a Portal API call (PAPI), there may be an error:
Error: Unable to make request. This may be due to a network error or a Cross-Origin Resource Sharing
Ensure that the machine from where you are making the PAPI call is able to connect to the gateway. You may have to edit the /etc/hosts file to add the ip address vs host file resolution for the gateway.