Basically I would like to host an application on a different server than my SharePoint server. Using the managed client object model I have been able to access data on my SharePoint server, but I'm confused about whether I can do this using the javascript Client object model.

If I can, where do I get the sp.js file? Am I right in assuming that this is where functionality for the javascript client object model is contained?

1 Answer 1


In your case, you might be constrained by the same origin policy. It prevents JavaScript from accessing information that resides in a different domain (http://domain1.com vs. http://domain2.com, or http://site1.domain.com vs. http://site2.domain.com).

There are ways to work around this rule, but still it is an important constraint.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.