source: frontend/node_modules/axios/lib/helpers/isURLSameOrigin.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 2 weeks ago

Fix frontend appearance

  • Property mode set to 100644
File size: 464 bytes
Line 
1import platform from '../platform/index.js';
2
3export default platform.hasStandardBrowserEnv
4 ? ((origin, isMSIE) => (url) => {
5 url = new URL(url, platform.origin);
6
7 return (
8 origin.protocol === url.protocol &&
9 origin.host === url.host &&
10 (isMSIE || origin.port === url.port)
11 );
12 })(
13 new URL(platform.origin),
14 platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent)
15 )
16 : () => true;
Note: See TracBrowser for help on using the repository browser.