Monday 10 October 2016

Difference between JSOM and CSOM

csom is written in C#, JSOM in JavaScript. CSOM runs as an application on a client (think a .exe) or as code inside IIS (provider hosted add-in) whilst JSOM runs in the browser (think a .JS file embedded in a html/aspx page).

 One other major difference: CSOM calls need to be authenticated (with Oauth) while JSOM calls are automatically authenticated with the users identity since it is JS code running in the browser.

CSOM is client side object model which is comprise of C# client side coding(Microsoft.sharepoint.cleint.dll) , JavaScript client side coding(sp.js) and silverlight. JSOM OR ECMAScript are same and CSOM coding which is done in JavaScript is called JSOM.