fetch() and new Request() now throws if URL includes credentials

Published: | Categories: DOM

Description

The Firefox implementation of the fetch method and Request constructor was incorrectly accepting URLs containing a username and/or password, like http://user:password@example.com. Firefox 43 and later will throw a TypeError in such cases to comply with the Fetch API specification.

References