question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement fetch methods

See original GitHub issue

Under lib/fetch/util.js we have a few helper methods that are pretty well documented in spec and and needs to be implemented:

  • appendRequestOriginHeader
  • appendFetchMetadata
  • TAOCheck
  • corsCheck
  • crossOriginResourcePolicyCheck
  • makePolicyContainer
  • clonePolicyContainer
  • determineRequestsReferrer

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
ronagcommented, Aug 20, 2021

I’d like to confirm what we think about cors related features, for example, mode is currently supported, while it’s unimplemented in node-fetch. Do we want to support them as much as we can? Or are they unnecessary complexities?

We implement them because it’s easy to just follow the spec literally.

0reactions
KhafraDevcommented, Oct 28, 2022

No, everything is done.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using the Fetch API - MDN Web Docs
The Fetch API provides a JavaScript interface for accessing and manipulating parts of the protocol, such as requests and responses.
Read more >
JavaScript | fetch() Method - GeeksforGeeks
The fetch() method in JavaScript is used to request data from a server. The request can be of any type of API that...
Read more >
JavaScript Fetch API Explained By Examples
The Fetch API allows you to asynchronously request for a resource. Use the fetch() method to return a promise that resolves into a...
Read more >
Fetch - The Modern JavaScript Tutorial
Getting a response is usually a two-stage process. First, the promise , returned by fetch , resolves with an object of the built-in...
Read more >
How To Use the JavaScript Fetch API to Get Data - DigitalOcean
The API you call using fetch() may be down or other errors may occur. If this happens, the reject promise will be returned....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found