To mitigate these issues using the optimised process, complete the following steps:
- Remove the explicit
cdnAPI
endpoint configuration from the JavaScriptrun()
methodThis means that API calls are made using the Origin as a destination, as shown in the following example Request URLs:
- https://latestnews.cdn.arcpublishing.com/zephr/feature
- https://latestnews.cdn.arcpublishing.com/zephr/feature-decisions
- The requests are received by the server and a proxy rule applied
The configured proxy rule changes the Origin to the actual API endpoint and path used in Zephr, as shown in the following example Request URLs:
- https://latestnews.cdn.zephr.com/zephr/feature
- https://latestnews.cdn.zephr.com/zephr/feature-decisions