Answer the question
In order to leave comments, you need to log in
How to organize a cross-domain request in AngularJS?
Good day, the question is the following, I have a service that returns an object with resources for various requests of this kind
angular.module('myModule')
.constant('url','http://api.domain.com/')
.factory('service',['....',
function(.....){
return {
auth : $resource(url,{},{
login:{
method:'POST'
}
}),
....
Answer the question
In order to leave comments, you need to log in
Maybe JSONP will help. See documentation! https://docs.angularjs.org/api/ng/service/$http
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question