Testing and Securing the Website

Learn about testing ASP.NET Core empty website functionality and enabling HTTPS encryption for secure communication.

Test the functionality of the project and enable encryption

We will test the functionality of the ASP.NET Core Empty website project. We will also enable encryption of all traffic between the browser and web server for privacy by switching from HTTP to HTTPS. HTTPS is the secure encrypted version of HTTP.

Step 1: For Visual Studio:

  1. In the toolbar, make sure that the https profile is selected rather than http, IIS Express, or WSL, and change the Web Browser (Microsoft Edge) to Google Chrome, as shown in the figure:

Get hands-on with 1400+ tech skills courses.