Sign up ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

In your case, you might be constrained by the same origin policy. It prevents JavaScript from accessing information that resides in a different domain ( vs., or vs.

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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