Every line of 'responseurl' 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.
302 function responseURL() { 303 if ('responseURL' in xhr) { 304 return xhr.responseURL 305 } 306 307 // Avoid security warnings on getResponseHeader when not allowed by CORS 308 if (/^X-Request-URL:/m.test(xhr.getAllResponseHeaders())) { 309 return xhr.getResponseHeader('X-Request-URL') 310 } 311 312 return; 313 }
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code