Ask coding questions

← Back to all posts
[JS]: Jquery get request not working on repl
Vandesm14 (539)

This request works fine on any other site, but for some reason, jquery says there's an error.

I've tested this http request sites, they don't fail, they load the db.json file correctly. Repl.it has a proxy, could that be the problem?

Commentshotnewtop
malvoliothegood (148)

I think this issue is with the server that is serving the JSON file. It is not sending back a header that allows cross origin requests.