XMLHttpRequest cannot load https://www.test.com;.
No 'Access-Control-Allow-Origin' header is present
on the requested resource. Origin 'http://127.0.0.1:55427'
is therefore not allowed access.
down vote
CORS is if your trying to access from one domain - another domain.
Try withJSONP. JSONP should work , because it uses the GET method.
Try this
var url = "https://test.com";
$http({
...
Thursday, January 12, 2017
January 12, 2017