Getting into using OpenAPI and Swagger for API documentation. When running the asp.NET core API project locally, Visual Studio pops up a Swagger editor window where a developer can view the endpoints and send requests to them. Requests and responses work correctly this way.
Now, using a different Swagger editor such as the VS Code extensions Swagger Viewer and OpenAPI (Swagger) Editor I get this: No Server Response
I tried to follow some other answers to fix what I assumed was a CORS issue.
I expected that after trying variations on the other two answers, that it would resolve a CORS issue and would fix it on the VS Code extensions, but it did not. If there is a way to see what network requests the VS Code extensions are making, that might help provide more information but I wasn't too enthusiastic about installing network sniffing tools and trying to configure it to only capture localhost, not the entire work network.
Why is this happening?