How to migrate a SharePoint hosted app from SharePoint 2013 to SharePoint Online?

Do that require the code of app to be rewritten or can we simply download and upload the app file to SharePoint online app catalog?

1 Answer 1


Normally you don't have to change anything. Just upload and that's it.
However there are a few things to check:

  • does your app use any external APIs. If yes, probably you should change APIs CORS configuration to accept requests from new urls
  • do you use any undocumented features or "hacks" in your code? Those hacks might not work in Online
  • any code which uses SharePoint DOM manipulation or css selectors which modify SharePoint UI - it might be broken in Online, because markup in Online is slightly different

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.