cancel
Showing results for 
Search instead for 
Did you mean: 

API Proxy - relative url

Former Member
0 Kudos

In API Management I have created an API proxy by importing the "URLMask" example (which is available at https://github.com/SAP/cloud-api-management-samples) The problem I have is that the target site contains several relative urls that loads CSS files and Java Script files. My issue is that the proxy base URL is dropped

Anybody have experienced the same issue ?

Regards

Rasmus
Example:

Target: https://testsite.com/

Proxy Endpoint: https://trial.apim1.hanatrial.ondemand.com/ <account name>/v1/test

The response contains a relative url like /javascripts/script.js which result in a new request :

https://trial.apim1.hanatrial.ondemand.com/javascripts/script.js

this fails because /<account name>/v1/test is not included in the url

Accepted Solutions (0)

Answers (1)

Answers (1)

ElijahM
Advisor
Advisor
0 Kudos

Hi Rasmus,

Apologies for the delay in the reply, we are still adjusting to the new Community format.

Can you elaborate a little bit about what the issue is that you're facing? The GitHub API Proxy is pointing to ES4 with absolute URLs. Do you mean that you have modified the Proxy to point to a different Target?

And for the JS, are you saying the API Proxy is calling a relative URL JS, or the Target site contains javascript?

Regards,
Elijah