在VS中寫接口可能會遇到接口地址是http或者是https的問題,這個時候 可以右鍵項目屬性,進行修改你的iis地址,但是https的地址無法直接修改

需要在Properties 下面 有一個 launchSettings.json 中
"iisSettings": { "windowsAuthentication": false, "anonymousAuthentication": true, "iisExpress": { "applicationUrl": "http://localhost:44322", "sslPort": 44321 } }
sslPort 這個參數修改成你想要的https地址就可以了。
