When you call BioStar API from the cloud server(https://api.biostar2.com) using JavaScript, you will face an issue regarding Cross-Domain due to the same-origin policy which is one of security policies in JavaScript. The same-origin policy restricts a document or a script loaded from one origin to interact with a resource from other origin. The same-origin means that a protocol, a hostname, and a port are identical. Therefore, we strongly recommend that you use other languages if you utilize the cloud API server.

 


  Below are the lists, which is allowed to access the Cross-Domain in BioStar API. You can call BioStar API normally with the domain or IP included in below lists.

  • localhost
  • 127.0.0.1
  • 192.168.x.x
  • biostar2.com
  • 10.x.x.x
  • 172.x.x.x