Forum Discussion

JustJim's avatar
JustJim
Copper Contributor
Mar 03, 2019

Sharepoint 2013 React App

I am in an odd scenario where I have a Sharepont 2013 site collection.  Sadly we do not have the app model turned on so I cannot use visual studio.  I am using VS code to use the create-react-app scaffold and I cannot seem to do any fetch calls from local host 3000 (as its considered cross domain rest calls).  This means when i run the dev server on local host I cant see how the data flows in/out.  So I guess I have 2 questions.

 

  1. Is it truly possible to use local host to connect to sp 2013 with no app model (I have no hive access so no central admin)?  Especially, when I keep getting CORS restrictions and 401 errors when trying to authenticate with a fetch rest call.
  2. If not would I literally have to run npm build and upload to sharepoint to test everything?

 

  • NotAlex's avatar
    NotAlex
    Iron Contributor

    Are you talking about the SharePoint Framework SPFX yomen app generator?

     

    If so that is not supported in SharePoint 2013.

     

    Cheers

    Alex  

     

    • JustJim's avatar
      JustJim
      Copper Contributor

      Yes sadly I am aware that I have no access to SPFX.  It makes me cry a little on the inside every time I think about it.  That being said I found a library called sp-rest-proxy.  I hope that it can do what I am asking or I really just don't know if its possible in my scenario.

      • NotAlex's avatar
        NotAlex
        Iron Contributor

        That sounds like a really bad time man, If its simple you could just use a script editor webpart.

         

        otherwise development choices are very limited without using visual studio/sharepoint app model 

         

Resources