On the server side, the place receiving your request, you should add something like Allow-origins to * and Allow-method to * in your code’s response body.
Hope that helps