Hacker News new | ask | show | jobs
by Timja 1078 days ago
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')