URL constructor doesn't allow credential
Issue #8004284 • Assigned to Nicolas A.
Steps to reproduce
The code new URL("http://username:password@127.0.0.1:80/jsonrpc")
throws A security problem occurred.
on Edge (14.14372).
The standard never mentions about disallowing credential in URLs, and the code above runs successfully in Firefox (48) and Chrome (52) and returns username
and password
without problem.
I’m porting an extension from Chrome, it relies on this API to parse URL and make requests.
You need to sign in to your Microsoft account to add a comment.
Sign in