JavaScript Fetch with Basic Auth

Sometimes it is necessary to use fetch from a server secured with basic auth (very often in case of staging domains), usually, the authorization is done by login and password included within the URL itself: JavaScript may seem pretty obvious: But in case of fetch this is not allowed and will result in an error: […]

Read More