Every line of 'window location origin' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
86 export function getWinOrigin(win) { 87 return win.origin || parseUrlDeprecated(win.location.href).origin; 88 }