SITUATION:
- Internal web site running off a web server.
- SharePoint running off a different internal web server.
- It's all internal, and all on the same
company.com
internal domain (different sub domains because they are accessed viaSharePoint.company.com
andinternalWeb.company.com
)
PROBLEM:
- XMLHttpRequest cannot load
http://SharePoint.company.com.
Originhttp://internalWeb.company.com
is not allowed by Access-Control-Allow-Origin.
WHAT I WANT:
- Use ajax and the JQuery load() function from my web sites running off the web server to call urls on the SharePoint server.
NOTE:
- This seems like it should be possible to set the SharePoint server to allow cross origin requests by just setting the Access-Control-Allow-Origin, it's ALL INTERNAL and I can change the web.configs or IIS settings as I please
- Is this possible? If so, where do I set it. I have read a lot on this and can't seem to get a clear answer.
CODE: (on my web page running on internalWeb.company.com
)
$("#details").load("SharePoint.company.com/someDetails.html");
Thanks!