How can I capture the HTML from a link in JavaScript? Alternatively, for a more conversational tone: W

20 Replies, 1219 Views

CORS is a pain, man. If the site doesn’t allow cross-origin requests, you’re kinda stuck unless you control the backend.

For local dev, you could use a browser extension to disable CORS (like [Moesif](https://www.moesif.com/)). But yeah, `fetch` should work if the server plays nice.

Messages In This Thread



Users browsing this thread: 1 Guest(s)