I am trying to create a sub-site in SharePoint Online using REST APIs in C#. I don't want to use Microsoft.SharePoint.Client as the use of this DLL requires installation of SharePoint Client Components on the client server.

I have referred the following links- - Creating a subsite using c# and the REST API - http://newscentral.exsees.com/item/b0573efe00a1433a46363be62b854e94-a466156e0e826abb252152049ba40f1e

But, I am getting the following error- - the remote server returned an error 403 forbidden Is there any way to solve this problem?

Or is there any other solution?


1 Answer 1


The issue is happening because of cross domain issue. To resolve this you should pass extra details to the REST EndPoints as explained on below thread


  • Hi Amal, thanks your quick reply. Can you please share the entire code if possible? Apr 2, 2015 at 9:28

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.