function GetTokenfromGrap(resource, obj, failureCallback) { debugger; var deffered = $q.defer(); var url = baseUrl +resource; var configurations = { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } } $http.post(resource, obj, configurations).then(deffered.resolve).catch(function (data) { handleCatch(data); if (typeof failureCallback === 'function') failureCallback(data); }); return deffered.promise; }
Quote::4200/welcome:1 Failed to load https://login.microsoft.com/xxxxx.com/oauth2/token: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:4200' is therefore not allowed access.
login.microsoft.com
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)