Spaces:
Configuration error
Configuration error
Download node_modules/axios/lib/helpers/isURLSameOrigin.js from CPISTO/TARSTHENEXT: direct link, hf CLI and curl.
- Browser
- Download file 420 Bytes
-
https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/axios/lib/helpers/isURLSameOrigin.js
- Command line
-
hf download hf://spaces/CPISTO/TARSTHENEXT/node_modules/axios/lib/helpers/isURLSameOrigin.js
-
curl -L -o isURLSameOrigin.js https://huggingface.co/spaces/CPISTO/TARSTHENEXT/resolve/main/node_modules/axios/lib/helpers/isURLSameOrigin.js
420 Bytes
| import platform from '../platform/index.js'; | |
| export default platform.hasStandardBrowserEnv ? ((origin, isMSIE) => (url) => { | |
| url = new URL(url, platform.origin); | |
| return ( | |
| origin.protocol === url.protocol && | |
| origin.host === url.host && | |
| (isMSIE || origin.port === url.port) | |
| ); | |
| })( | |
| new URL(platform.origin), | |
| platform.navigator && /(msie|trident)/i.test(platform.navigator.userAgent) | |
| ) : () => true; | |