webextension: Why does the browser add a trailing slash to the requested URL?
When I make a request to http://www.example.com , why does I see http://www.example.com/ in the webRequest.onBeforeRequestListener ? For example: chrome.webRequest.onBeforeRequest.addListener( details => console.log('Sending request to', details.url), { urls: ['<all_urls>'] }); fetch('http://www.example.com'); will print Sending request to http://www.example.com/ That is consistent with the request URL shown in the network request monitor. For example, if I take it and convert it to a curl command, the request looks like this: curl 'http://www.example.com/' -H 'Accept: */*' -H 'Connection: