Skip to main content
added 3 characters in body; edited tags; edited title
Source Link
Ganesh Sanap - MVP
  • 46.4k
  • 22
  • 31
  • 63

How to connect two sharepointSharePoint on-prempremises installations inside the same domain using JSOM?

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 XMLHttpRequestsubdomain.domain.com/sites/mySite XMLHttpRequest at from origin has been blocked by corsCORS policy

Thanks

How to connect two sharepoint on-prem installations inside the same domain using JSOM?

I have two SharePoint installations in the same domain.

Example:

Installation 1: subdomain.domain.com/sites/mySite

Installation 2: subdomain2.domain.com/sites/mySite2

Also, they share the users. I would like to read a list from Installation 1 in a Installation 2 webpart.

I tried using JSOM with new SP.Context(siteUrl) and SP.RequestExecutor.js, but I got this error message:

Access to subdomain.domain.com/sites/mySite XMLHttpRequest at from origin has been blocked by cors policy

Thanks

How to connect two SharePoint on-premises installations inside the same domain using JSOM?

I have two SharePoint installations in the same domain.

Example:

Installation 1: subdomain.domain.com/sites/mySite

Installation 2: subdomain2.domain.com/sites/mySite2

Also, they share the users. I would like to read a list from Installation 1 in a Installation 2 web part.

I tried using JSOM with new SP.Context(siteUrl) and SP.RequestExecutor.js, but I got this error message:

Access to subdomain.domain.com/sites/mySite XMLHttpRequest at from origin has been blocked by CORS policy

Source Link

How to connect two sharepoint on-prem installations inside the same domain using JSOM?

I have two SharePoint installations in the same domain.

Example:

Installation 1: subdomain.domain.com/sites/mySite

Installation 2: subdomain2.domain.com/sites/mySite2

Also, they share the users. I would like to read a list from Installation 1 in a Installation 2 webpart.

I tried using JSOM with new SP.Context(siteUrl) and SP.RequestExecutor.js, but I got this error message:

Access to subdomain.domain.com/sites/mySite XMLHttpRequest at from origin has been blocked by cors policy

Thanks