i'm facing recurrent issue when Testing an API published in Developer portal using the Api explorer.
i following these steps for publishing the API:
1. i have a backend API available on a LAC SERVER (backend API url : https://lac.ness.com:8083/rest/default/banking/v1 )
2. i took the swagger file of this api and modified in it the point to my gateway tenant which is enrolled with the portal (this is the gw url : https://gw3.local.poc:8443/banking_api/3
3. i successfully published the API with the modified swagger file using API key for authentication and also in the api explorer
now, i can test the API using a client app (like postman) via the gw url and get response from the backend . however, when i test it using the API explorer of the portal i get the following error (see screenshot as well) :
Error: Unable to make request. This may be due to a network error or a Cross-Origin Resource Sharing request pre-flight failure.
any ideas how can i resolve it ?
Can you send a screenshot of your browser console after clicking on the submit button ?
I think it's a certificate trust issue between your GW and your Browser.
Copy the Request URL in another tab of your Browser, then you will get a warning
because your Browser doesn't trust the certificate so you just have to proceed (Click on Advanced and so one).
Then go back to the API Explorer and try again.
thanks that worked.