Topic: CORS policy and JSONP

i am trying to use the api from JS in the browser. For security reasons it is impossible to send requests to other sites. To bypass this it's possible to use jsonp, which the api already provides, but with jsonp it is impossible to send a user agent, which is required in the docs. If CORS is implemented in the site it would be possible to do a normal request from JS without the need to use jsonp and it will be possible to use an user agent.

https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS

Updated by KiraNoot