Turning off ASP.Net WebForms authentication for one sub-directory

前端 未结 7 1989
臣服心动
臣服心动 2020-12-15 07:21

I have a large enterprise application containing both WebForms and MVC pages. It has existing authentication and authorisation settings that I don\'t want to change.

7条回答
  •  时光取名叫无心
    2020-12-15 07:44

    If "rest" is simply a folder in your root you are almost there: remove authentication line i.e.

    
      
          
            
          
      
     
    

    Alternatively you can add a web.config to your rest folder and just have this:

    
         
              
         
    
    

    Check this one.

提交回复
热议问题