I have two Web Applications on the same SharePoint Farm, intranet.company.com and associates.company.com
I'm trying to pull user data with a REST call from the intranet site like this:
This works when calling from intranet web application just fine.
BUT not if I am calling it from the associates web application. The error is:
Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource
I don't want to use Visual Studio to install an app to get an AppContextSite reference. Is there a way to bypass this, perhaps a server setting in IIS on the farm?