Removing Fetch API default timeout
问题 I'm sending queries to my server using native fetch from Google Chrome or Mozilla Firefox: fetch(url, { method: 'POST', body: formData, credentials: 'include' }) I set up a server to send a response after 3 minutes and realized that both browsers only wait 2 minutes. Firefox resend the request once more before failing. Is there a way to define a timeout bigger than 2 minutes (say infinite)? 回答1: As far as I read fetch()'s documentation on MDN, it does not have any way to specify a timeout.