Problem with downloading Media files from Sitecore if Windows Authentication enabled

UAT environment used to be locked with Windows/Basic Authentication. There is an issue with Sitecore media items (mainly XSLT) when site is locked with Windows Authentication. 401 unauthorized issue. We need to give anonymous access only to media items like XSLT. Thanks to Ankit Agarwal who gave the solution.


In applicationHost.config, add these lines,
<location path="<Sitecore>/~/media”>
       
           
               
                   
                   
               
           
       
   
This solved the issue with Media items. 

2 thoughts on “Problem with downloading Media files from Sitecore if Windows Authentication enabled

  1. Ooops. I missed this comment for a long time… applicationHost.config is the configuration file of IIS. It will be located in %WINDIR%\\System32\\inetsrv\\config. You can change it using any text editor. Let me know if you need more information.

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create your website at WordPress.com
Get started
%d bloggers like this: