SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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.