I have two SharePoint installations in the same domain.
Example:
Installation 1: subdomain.domain.com/sites/mySitesubdomain.domain.com/sites/mySite
Installation 2: subdomain2.domain.com/sites/mySite2subdomain2.domain.com/sites/mySite2
Also, they share the users. I would like to read a list from Installation 1 in a Installation 2 webpartweb part.
I tried using JSOM with new SP.Context(siteUrl)new SP.Context(siteUrl)
and SP.RequestExecutor.jsSP.RequestExecutor.js
, but I got this error message:
Access to subdomain.domain.com/sites/mySite XMLHttpRequest
subdomain.domain.com/sites/mySite XMLHttpRequest
at from origin has been blocked by corsCORS policy
Thanks