0
I’m passing a url and some data via angular post... However, the following warning appear on Chrome console:
Cross origin requests are only supported for Protocol schemes: http, data, Chrome, Chrome-Extension, https, Chrome-Extension-Resource.
Follow me angular code:
$http.post("localhost:8765/api/v1/users/oauth.json?token="+t1+"&redirect_url=localhost:8765/api/v1/users", data).success(function(responde){
console.log(responde);
});
What does this warning mean?
https://pt.wikipedia.org/wiki/Cross-origin_resource_sharing ;)
– Bartolomeu S. Gusella
Dude, I already put this line in my php files. header('Access-Control-Allow-Origin: *'); .
– GustavoSevero
Possible duplicate of "No 'Access-Control-Allow-Origin' header is present" cakephp
– Sorack
@Sorack, the previous post, which you put as reference, above, It has been solved... However, I am making a request for another url, with token, email and password...
– GustavoSevero