How do I change the security settings to allow cross-domain on the same web-server? I have multiple instance or site collections on the same server but want to make sure that web-services to list.asmx can be called from any of the sites on the server.
2 Answers
There's a discussion on stackoverflow on this topic with an accepted answer:
Best way to handle Cross Domain on SharePoint Intranet w/o server side, silverlight, DBC etc
In a nutshell, you can use crossdomain.xml policy file, JSONP or jQuery.support.cors wrapper for browser capabilities or create a server-side proxy to work around the cross-domain restrictions.
-
Thanks I had come across JSONP in my research, thanks for the additional info and reference. Commented Apr 15, 2013 at 15:52
The Lists web service is available from all SharePoint sites.
To access this Web service set a Web reference to
http://<site>/_vti_bin/Lists.asmx.
http://msdn.microsoft.com/en-us/library/websvclists(v=office.14).aspx
-
This answer is really not on topic as there's an explicitly specified Cross-Domain nature of the question. Commented Apr 12, 2013 at 14:35
-
Perhaps the basis for the question is flawed. You do not need to go cross-domain to access Lists.asmx. Commented May 8, 2013 at 17:57
-
1Well, if you use different web applications, whether port- or AAM/hostname based, or host-named site collections (vanity URLs), you do have to go cross-domain. Commented May 14, 2013 at 7:58