features: {
alerts: false,
analytics: false,
cloudHubDeployment: false,
hybridDeployment: true,
segmentio: false,
proxyWhitelist: true
}
Allow Addresses for API Platform Proxies
This topic describes how to allow addresses for API Platform Proxies in Anypoint Platform Private Cloud Edition. By default, proxy requests are enabled to the domain name where the platform is running.
To allow addresses:
-
Login to Ops Center, the click then select Configuration.
-
Select the
api-platform-web-configconfig map from the drop-down list. -
Locate the
featuresobject in the local.js tab: -
Ensure that the
proxyWhitelistproperty is set totrue. -
Locate the
proxyWhitelistobject in the same tab.proxyWhitelist: { allowLocalhost: false, allowPlatformHost: true, rules: [] }The
proxyWhitelistobject contains the following properties:allowLocalhost
Enables proxy requests to be made to the
localhostaddress.allowPlatformHost
Enables proxy requests to be made to the same domain where the platform is hosted.
rules
Defines an array containing regular expressions to create matching rules.
-
Update the
rulesarray as necessary. The following example shows how to define regular expressions to allow requests to be made to the.somewhere.com/and.somewhereelse.com/domains, where * can be any part of a DNS name or URL:proxyWhitelist: { allowLocalhost: false, allowPlatformHost: true, rules: [ /.*\.somewhere\.com/, /.*\.somewhereelse\.com/ ] } -
Click Apply to save changes to the
api-platform-web-configconfig map. -
Recreate the pod to ensure each node in the cluster uses the most current configuration:
kubectl delete pod -l microservice=api-platform-web



