Swagger UI - “ TypeError: Failed to fetch” on valid response

后端 未结 9 1460
一生所求
一生所求 2020-12-14 02:27

I\'ve just pulled down the latest Swagger from the Git repo (3.0.19) using: https://github.com/swagger-api/swagger-ui.git and updated my API to use the new version.

9条回答
  •  死守一世寂寞
    2020-12-14 02:44

    Every solution will definitely be correct :) But in my case I have that line in my webconfig file

       
    

    I just replace ASPNETCORE_HTTPS_PORT to ASPNETCORE_HTTP_PORT and the error has been gone :). So the final line is

      
    

    replace 5001 with your port.

提交回复
热议问题