we have a portal from which we need to check if user is present in another domain or not but when we are making web Api call its giving status code 401
Right now, we are sending Api call from 'portal' and portal' don't have access to that domain that's why its showing 401
when as user we are checking that web Api call its giving result
we need to know How to make web Api call from cross domain D365 using AJAX or how to make a call on portal, but web Api will call using users' identity