Homam
Homam

Reputation: 23871

How can I except the style folder from the Authorization

My website is open only for authorized users, so I denied the anonymous users. but the problem is the style is corrupted because it's not allowed to anonymous users to access to the Style folder.

How can I except the style folder from the Authorization ?

<authorization>
   <deny users="?"/>
   <allow users="*"/>
</authorization>

Upvotes: 0

Views: 102

Answers (1)

PMC
PMC

Reputation: 4766

Use the location element as described here

     <location path="style">
    <system.web>
      <authorization>
        <allow users="*" />
      </authorization>
    </system.web>
  </location>

Upvotes: 3

Related Questions