map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface ProxyRule

    Specifies a proxy rule. Requests targeting the origin server of a proxy rule will use the configured proxy server to fetch the resource.

    interface ProxyRule {
        origin: string;
        proxyUrl?: string;
    }
    Index

    Properties

    Properties

    origin: string

    An origin to match against request URLs. URLs matching this origin pattern will use the configured proxyUrl (if present) or the default proxy URL.

    Origins must contain protocol, a hostname and (optionally) a port. For example, https://subdomain.arcgis.com is a valid origin.

    proxyUrl?: string

    URL to a server endpoint that can act as proxy. If this URL is not specified, a default proxy will be used.