Comment

Comment by Timja

Most servers don't set a CORS header though.

So usually it does not work in the browser.

Try this in your console while not on Reddit:

    fetch('https://www.reddit.com/.json')
parent Timja 3 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton