/** * Fetch CORS utility. */ export default class FetchCORSUtility { /** * Validates request headers. * * @param originURL Origin URL. * @param targetURL Target URL. */ static isCORS(originURL, targetURL) { return ((originURL.hostname !== targetURL.hostname && !originURL.hostname.endsWith(targetURL.hostname)) || originURL.protocol !== targetURL.protocol); } } //# sourceMappingURL=FetchCORSUtility.js.map