UNPKG

@esri/arcgis-rest-request

Version:

Common methods and utilities for @esri/arcgis-rest-js packages.

11 lines (10 loc) 378 B
/** * Is the given URL the same origin as the current window? * Used to determine if we need to do any additional cross-origin * handling for the request. * @param url * @param win - optional window object to use for origin comparison * (useful for testing) * @returns */ export declare function isSameOrigin(url: string, win?: Window | undefined): boolean;