I have installed JSS tech preview 4 and trying to import the sample react app "sitecore-embedded-jss-app".

When running jss deploy app or jss deploy app -c -d , I get the message

Forbidden - Access is denied. You do not have permission to view this directory or page using the credentials that you supplied. 

I assume the credentials that are used are that of user "sitecore/jssimport"

Is that a correct assumption? Elevating the rights for this user in Sitecore still has same result. Setting full control rights for everyone to filesystem has same result.

Any ideas what causes this error?


A few troubleshooting suggestions:

  • Have you deployed the app config for the sample app? jss deploy config
  • Have you installed the JSS server package on your Sitecore instance? http://jss.sitecore.net/docs/getting-started/jss-server-install
  • Are you able to browse without 403 error to the host name of the deployUrl value defined in scjssconfig.json? e.g. http://jssreactweb. Ensure that your app config has been deployed and host name has been bound to your Sitecore IIS site.
  • Do you have a deploySecret value defined in your scjssconfig.json and a [appname].deploysecret.config file in /sitecore/config? Run jss setup if not.

The problem was caused bij a set of rules in the web.config of the sitecore site stating that all traffic should be redirected to https. setting in scjssconfig was pointing to http://my-app. Disabling the rules in the web.config stopped the problem from occurring. Thanx Adam for pointing me in the right direction.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.