Advanced Forms Authentication
Tonight I realised that with normal forms authentication on, a linked css file (from a link tag in head) will not load on the login page before a user logs in, so the site has no css before the user logs in!!
Solution
right before the </configuration> in the web.config file add...
<location path="myskin.css">
<system.web>
<authorization>
<allow users="*">
</allow>
</authorization>
</system.web>
</location>
replace myskin.css with any file you wish to grant unauthorised access to! :)
Solution
right before the </configuration> in the web.config file add...
<location path="myskin.css">
<system.web>
<authorization>
<allow users="*">
</allow>
</authorization>
</system.web>
</location>
replace myskin.css with any file you wish to grant unauthorised access to! :)
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home