cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

HTTP 403 Forbidden when SAP CPI calls On-Premise HTTPS API via Cloud Connector.

Deepak161
Discoverer
0 Likes
287

Hi Experts,

I am trying to connect SAP Integration Suite (CPI) to a third-party REST API that is hosted on an on-premise server.

The third party has exposed the API over HTTPS with port 443, and the API works successfully when called directly from Postman using the HTTPS URL. This API does not require any kind of headers. 

To access the on-premise system from CPI, I am using SAP Cloud Connector. In my integration flow, I have configured the receiver using the Cloud Connector virtual host. 
I am using HTTP receiver adapter with HTTP protocol because Proxy type On-Premise does not allow HTTPS.
We are calling API with HTTP  protocol and port 80.
Has anyone faced a similar issue where an HTTPS API works from Postman but returns 403 only when called through SAP Cloud Connector with HTTP protocol?


Cloud connector is Reachable. 

Deepak161_0-1782450579167.png

Deepak161_0-1782451576907.pngDeepak161_1-1782451667984.png

 




Accepted Solutions (1)

Accepted Solutions (1)

robertot4s
Contributor

Hi,

When Cloud Connector triggers a 403 error the message is something like "Access denied to system <host>:<port>. In case this was a valid request, ensure to expose the system correctly in your cloud connector". In your case, I suggest you review the credentials and permissions of the user you are using to connect with SAP.

Hope it helps.

Regards,

Roberto

 

Deepak161
Discoverer
Thankyou for your response! Cloud connector is configured correctly. The API is hosted on HTTPS that is why it is not allowing to HTTP.
Ryan-Crosby
Active Contributor
0 Likes
@Deepak161 if you provide the port number :443 at the end it may work. We have cases where we use HTTPS through cloud connector, but the one thing we cannot do is put https:// at the beginning of the URL in CPI.

Answers (0)