I was using the BOSS Geo API,
I figured that it was the domain which was causing issues,
I created another project with a the project type client/desktop instead of web-based,
and it is working since
If you use web-based then I think you need to make sure you are making requests from the same
domain specified on the project