from html page using javascript ajax call trying call login_check api (rest webservice) getting error below. xmlhttprequest cannot load
http://184.30.53.119:8080/automation_test1/trts/login/login_check. no 'access-control-allow-origin' header present on requested resource. origin 'null' therefore not allowed access.
javascript has same-origin policy. means cannot request pages on other domains. have couple of options this, use jsonp or have php script call query api.
more information: working , around same-origin policy
Comments
Post a Comment