Scenario:
From Angular application, we are using HTTP.get() in order to hit SHARE POINT rest api url. Share point URL is public url and can be accessed by any one. Result: We are getting 401 unauthorized error.
If we hit the same url in the web browser, we were able to get the response with out any problem.
Observations:
when we hit the rest api in normal web browser, we are getting TYPE as 'document'. when we hit the rest api with in Angular Application. the request is going as TYPE 'XHR'. Anyone please help us on this issue.
withCredentials