如何在 Visual Studio 2019 16.8.3 Build 中禁用 ASP.NET Core API 3.1 项目上的 SSL? [英] How to Disable SSL on ASP.NET Core API 3.1 Project in Visual Studio 2019 16.8.3 Build?

查看:85
本文介绍了如何在 Visual Studio 2019 16.8.3 Build 中禁用 ASP.NET Core API 3.1 项目上的 SSL?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果您在创建项目时已经将 SSL 设置为不使用它,您将如何禁用它?如果我尝试在没有 SSL 的情况下创建一个新的 ASP.NET API 3.1 项目,当您第一次运行它时它会正常工作.

How will you disable SSL if you already set it up when you create your project to not use it on the first place? If I will try to create a new ASP.NET API 3.1 project without SSL, it will work fine when you first run it.

但就我而言,我想使用

项目

在Debug下设置->启动选项:

setting under Debug -> Launch option:

在此选项下,您通常看到的典型选项(例如选中或取消选中 SSL)缺失,因此我无法禁用它.所以当你运行这个 API 模板时,你会提示你通常的信任 SSL 证书".对话框.

Under this option, the typical option you usually see like check or uncheck SSL is missing so I am not able to disable it. So when you run this API template, you will prompt by the usual "Trust SSL Certificate" dialog box.

首先,我在创建项目时已经禁用了 SSL,这就是为什么看到这个对话框很奇怪.

On the first place, I already disable SSL when I create my project, that's why it is strange to see this dialog box.

但是当我将设置改回

IIS Express

IIS Express

在调试下->启动选项,它已经被禁用,当我运行它时,它运行良好,没有任何关于 SSL 通知的问题.这仅是 Project 选项的问题吗?

under Debug -> Launch option, it was already been disabled, and when I run it, it runs fine without any issue about SSL notification. Is this an issue on Project option only?

推荐答案

要禁用该对话框,如果您的项目启动设置为 'project' 并且您不想看到该对话框,则只需输入您的使用 HTTP 协议的按钮输入框中的应用程序 URL.

To disable the dialog box, if your project launch set to 'project' and you don't want to see that dialog box, you just need to enter your application URL in the button input box with HTTP protocol.

默认应用 URL 为 Https://loclahost:5001 或 Https://localhost:5000,您可以更改为任何其他 URL,例如 http://localhost:27510

the default app URL is Https://loclahost:5001 or Https://localhost:5000 that you can be changed to any other URL such as http://localhost:27510

这篇关于如何在 Visual Studio 2019 16.8.3 Build 中禁用 ASP.NET Core API 3.1 项目上的 SSL?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆