C# Web - localhost:port works, 127.0.0.1:port doesn't work

前端 未结 7 764
你的背包
你的背包 2021-02-01 01:48

I just finished adding C# Web API components (Web API Models & Controllers) to a localhost copy of an existing project.

This Web API\'s GET-methods shou

7条回答
  •  -上瘾入骨i
    2021-02-01 02:26

    Go into the folder .vs/config and open applicationhost.config and change

    
         
    
    

    to 127.0.0.1

    
         
    
    

    And change this too, to run directly using 127.0.0.1

提交回复
热议问题