Basic Authentication on IIS Express

后端 未结 3 1245
一个人的身影
一个人的身影 2021-02-07 04:01

I\'ve searched for a while now but I can\'t seem to find the answer. There are ways of disabling/enabling anonymous and windows authentication. Does anyone know how to enable ba

3条回答
  •  梦如初夏
    2021-02-07 04:21

    Update ApplicationHost.config

    In the the ApplicationHost.config file, find the following nodes and update the values:

    basicAuthentication enabled="false" /> 
    
    
    name="basicAuthentication" overrideModeDefault="Allow" /> 
    

    Locate ApplicationHost.config

    • VS 2015 and above (per Joost's answer):

      sln_folder/.vs/applicationhost.config
      
    • VS 2013 and below:

      %UserProfile%\Documents\IISExpress\config\applicationhost.config
      

      As far as I know, there is no way to enable it for only one project.

提交回复
热议问题