How to configure Visual Studio 2017 to open an unencrypted port on https ASP.Net MVC

I am trying to check webhooks from Stripe.com on my locahost (dev machine) using Visual Studio 2017. My site uses https. To check the websites you need a url, so on my local machine I need to install and use ngrok. Ngrok gives me the url to provide Stripe, so the strip knows where to send the send request. The problem is that ngrok does not work with https!

I searched for a solution within 2 days and I emailed ngrok to respond, they responded with

You should be able to configure VS to display an unencrypted port, but I am not very familiar with it so that I can tell you how to do this. maybe ngrok VS extension will help? https://ngrok.com/docs#visual-studio

I have already tried running the extension. Bad luck! All he does is open the ngrok.exe file and run it.

So, I'm trying to check if it is possible to open / open an unencrypted port? I assume this means an action method or controller using http and NOT https?

Or does it mean something else? Is this possible in ASP.NET MVC ???

+1
source share
1 answer

See my answer here: How to disable HTTPS in Visual Studio 2017 Web Proj ASP.NET Core 2.0

Note. If I am mistaken in the fact that there is a raw URL by default , the question above has the decision to disable the secure URL. I did not try, because my existing project already had an unprotected URL (since I suspect there is one with yours)

Just use the installed unsecured URL instead of the secure one.

enter image description here

-one
source

Source: https://habr.com/ru/post/1012321/


All Articles