javascript - Cross Domain Request with TypeScript and Angular $http Service -
i new typescript , trying set cross domain requests $http service. in past javascript able this:
$httpprovider.defaults.usexdomain = true; $httpprovider.defaults.withcredentials = true;
when @ irequestconfig options of definitivelytyped class required use angularjs see there withcredentials property not usexdomain property.
is there way this?
i don't believe possible this, may seem bad news. have news. don't need this, because setting usexdomain
true
has no effect. in fact, usexdomain
not thing in angular.
here great tutorial on cors more info.
Comments
Post a Comment