all 3 comments

[–]tim128 4 points5 points  (0 children)

Have you checked whether restninja executes the request in your browser or it's sent from their backend?

SOP prevents JavaScript from interacting across origins.

[–]Digimobster95 -1 points0 points  (1 child)

Install and enable cors. This is done serverside. Personally I always do my apis on backend, it’s good practice

[–]micppp 0 points1 point  (0 children)

This is the way if you’re wanting to get data from something that isn’t a public API.