0

Invoking third party url by http request is not working in Edge browser. Am using this code

$http({
    url: url,
    method: 'POST',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded',
      'Authorization':Authorization,
    },
    data: 'grant_type=client_credentials'
}).then(function (data, status, headers, config) {});
Web_Designer
  • 72,308
  • 93
  • 206
  • 262
  • Is it working fine in other browsers ? – Arun Mar 08 '17 at 10:32
  • Yes its working in firefox and chrome... – Gomathi Optisol Mar 08 '17 at 12:29
  • What error do you see in console ? Press `F12` to open up `Developer Tools` and navigate to `Console`. See if something pops up in console. – Arun Mar 08 '17 at 12:36
  • am getting this error - XMLHttpRequest: Network Error 0x80070005, Access is denied. – Gomathi Optisol Mar 08 '17 at 14:48
  • I think its a problem with edge on localhost testing. Try this [Edge localhost testing](http://stackoverflow.com/questions/30896958/xmlhttprequest-network-error-0x80070005-access-is-denied-on-microsoft-edge-bu#30910398) – Arun Mar 09 '17 at 03:36

1 Answers1

0

Maybe because of cross-domain of web browser policy which prohibit a request to not same host.