interface NgwConnectorOptions {
    auth?: Credentials;
    baseUrl?: string;
    cacheId?: string;
    requestTransform?: RequestTransformFunction;
    route?: string;
    withCredentials?: boolean;
}

Hierarchy

  • NgwConnectorOptions

    Properties

    User credentials for authorization in NGW. These credentials will be used for authentication in NGW requests.

    baseUrl?: string

    The base URL of the NextGIS Web (NGW) server. Example: "https://demo.nextgis.com"

    cacheId?: string

    Identifier for caching requests. This can be used to segregate cached data for different connectors.

    requestTransform?: RequestTransformFunction

    A function to transform the request before sending it. This function can be used to modify the URL, headers, or other options.

    route?: string

    The API route path to use for requests. If not specified, the default route "/api/component/pyramid/route" will be used.

    withCredentials?: boolean

    Indicates whether to include credentials such as cookies, authentication headers, or TLS client certificates in cross-site Access-Control requests. Setting this property ensures that cookies from another domain are used in the requests. Note that setting this property has no effect on same-origin requests.