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.