You don’t. The server you are making the request to has to implement CORS to grant JavaScript from your website access. Your JavaScript can’t grant itself permission to access another website.
You don’t. The server you are making the request to has to implement CORS to grant JavaScript from your website access. Your JavaScript can’t grant itself permission to access another website.