I am creating a simple website in vs2015. I chose IIS Express as the hosting environment. I tried several new projects and seemed to go around in circles, installed and uninstalled iis-express 10 times, and also added and removed the iis windows function. When I started the web project with vs2015, it used to open (without problems) the http: // localhost: port (for example, http: // localhost: 51898 ), but now it constantly redirects to https: // localhost .
Any ideas why?
IIS asp.net .
. <httpRedirect enabled="true" destination="https://localhost" />
<httpRedirect enabled="true" destination="https://localhost" />
urlrewrite. :
<action type="Redirect" url="http://www.maindomain.com/{R:1}" /> </rule>
Visual Studio, Chrome. : Google Chrome localhost https
:
services.Configure<MvcOptions>(options => { options.Filters.Add(new RequireHttpsAttribute()); });
In any case, double-check the startup.cs file. Maybe configurations are part of the problem
Source: https://habr.com/ru/post/1682339/More articles:How to assign a conditional variable without mutation? - javascriptHow to use CONST if there are several conditions - javascriptIIS will not cache a large (76 MB) file - cachingHow to insert into the root dialog with the base of bots? - c #С++ 11: какая разница между атомными:: store и atomic_store - c++Загрузка изображений на основе динамического пути в ReactJs - jsonWhy do we need a wrapper function in decorators? - pythonDoes the call contain a list for an optional value in Java? - javaPython: passing by reference and slice destination - functionPython - Poloniex Push API - pythonAll Articles