I am getting 401 unauthorized exception
while downloading(Excel/CSV) Powershell Reports.
I have tried by adding /-/script/handle
in IgnoreUrlPrefixes
setting but no luck.
Sitecore Version: Sitercore 9.1
Please help me out.
Thanks, Joy
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.
Sign up to join this communityWe had the same issue and solution was to enable Spe.IdentityServer.config
at \inetpub\wwwroot\website\App_Config\Include\Spe
.
OOTB this file comes with Sitecore Powershell module as disabled. Just need to remove .disabled
from the config name.
This issue occurs in Sitecore 9.1+ instances.
Solution:- Add below mentioned line to allow powershell to download/upload files like export excel/csv etc.
Please confirm what needs to be added to the Sitecore.Owin.Authentication.config for this issue
I encountered a similar problem in Sitecore version 10.3
, and I found a solution. To resolve this issue, please add the provided line of configuration to the siteNeutralPaths
node in the specified path.
In the path D:\inetpub\wwwroot\<instance name>\App_Config\Sitecore\Owin.Authentication\Sitecore.Owin.Authentication.config
, add the line:
<path hint="spe">/sitecore%20modules/PowerShell</path>