Hello I'm new to React and I am trying to make an AJAX GET request to an external API. However, the URL I add is being prepended with my host. Please let me know if I am doing something off. Below is my code.
$.ajax({
  type: 'GET',
  url: 'http://www.someapi.com/?i='+someId,
  async: false,
  dataType: 'json',
  success: function(data) {
    this.setState({data: data});
  }.bind(this),
  error: function(e) {
     console.log('error', e);
  }
});
The GET request is being sent to localhost:3000/http://www.someapi.com/?i=1
 
     
     
    