About 55 results
Open links in new tab
  1. Using the Fetch API - Web APIs | MDN

    Aug 20, 2025 · With the Fetch API, you make a request by calling fetch(), which is available as a global function in both window and worker contexts. You pass it a Request object or a string …

  2. Fetch API - Web APIs | MDN

    Jan 8, 2026 · The Fetch API provides an interface for fetching resources (including across the network). It is a more powerful and flexible replacement for XMLHttpRequest.

  3. Making network requests with JavaScript - MDN Web Docs

    Sep 29, 2025 · The main API here is the Fetch API. This enables JavaScript running in a page to make an HTTP request to a server to retrieve specific resources. When the server provides …

  4. Window: fetch () method - Web APIs | MDN - MDN Web Docs

    Dec 16, 2025 · The fetch() method of the Window interface starts the process of fetching a resource from the network, returning a promise that is fulfilled once the response is available. …

  5. MDN Web Docs

    For fetch requests the default value of mode is cors, meaning that if the request is cross-origin then it will use the Cross-Origin Resource Sharing (CORS) mechanism.

  6. RequestInit - Web APIs | MDN - MDN Web Docs

    Dec 16, 2025 · The RequestInit dictionary of the Fetch API represents the set of options that can be used to configure a fetch request. You can pass a RequestInit object into the Request() …

  7. MDN Web Docs

    This makes it available in pretty much any context you might want to fetch resources in.</p>\n<p>The <code>fetch()</code> method takes one mandatory argument, the path to …