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')So usually it does not work in the browser.
Try this in your console while not on Reddit:
fetch('https://www.reddit.com/.json')No comments yet.