"Access-Control-Allow-Origin" on GET API request

Hi,
Im having a issues when i call API via JSON Ajax command i get "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access.".
It's doing my head in, Help would be appreciated.


Code below
-------------------------------------
$.ajax({
url: 'BRICKOWL API GO HERE',
dataType: 'json',
type: 'GET',
cache: false,
success: function(data) {
console.log(data);
}
});

--------------------------------------

Thanks,
Justin

Comments

  • 2 Comments sorted by Votes Date Added
  • edited October 2017 Vote Up0Vote Down
    'BRICKOWL API GO HERE' - did you write this or is this something you forgot to change?
  • > @Hoddie said:
    > 'BRICKOWL API GO HERE' - did you write this or is this something you forgot to change?

    I had "https://api.brickowl.com/v1/order/view?key=KEY&order_id=100" i just removed it for the post as it had my api key in it
Sign In or Register to comment.