I am upgrading a website from MVC5 to Net Core 2.1 and installing in Azure Web Apps. I want to test the website in Azure before going to production. I have setup a test website but have not purchased an SSL certificate. I am getting 404 errors for missing views on the test website but not in VS2017 development. How can I remove the requirement for an SSL certificate. The following code is in my Startup.cs.
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
app.UseDatabaseErrorPage();
}
else
{
app.UseExceptionHandler("/Home/Error");
app.UseHsts();
}
app.UseHttpsRedirection();
app.UseStaticFiles();
app.UseCookiePolicy();
app.UseAuthentication();
app.UseSession();
app.UseMvc(routes =>
{
routes.MapRoute(
name: "default",
template: "{controller=Home}/{action=Index}/{id?}");
});
I created a test website in VS2017 without HTTPS selected. I do not see any difference between a site with Https and one without Https. Also, using the Chrome browser, the site shows as "Secure". I have never received a message for a missing SSL certificate.
Bob Neal,