I’ve created a simple Web API project with one controller.

While running the project from Visual Studio, I encountered the following error in the browser.

You can bypass this warning and load the page by clicking on the ‘Continue to localhost (unsafe)’ link. However, in some organizations, you may not even see the ‘Continue to localhost (unsafe)’ option.

Lets see how to fix this.

  • From your browser, open a new tab and hit “edge://flags/#allow-insecure-localhost“. Then select ‘Enabled’ from the dropdown and click on ‘Restart’.
    • For Chrome browser, hit “chrome://flags/#allow-insecure-localhost“.
  • All browser tabs get reloaded, and you should see your Web API project loaded.

🙂

Advertisements
Advertisements

3 responses to “C# | Running web api project locally | ‘Your connection isn’t private’ warning”

  1. Scott Avatar
    Scott

    Fantastic, thank you! This error occurred all of the sudden across all nt applications, so there must have a been an Edge update. You solved so much frustration.

  2. […] was fine just minutes ago then bam, this happened. Luckily, there is Rajeev Pentyala’s blog post about the subject that perfectly explained the solution. In Edge, type this […]

Leave a reply to [Step by Step] Power Platform | Configuring and Debugging a Core Web API as a Custom Connector using Dev Tunnels | Rajeev Pentyala – Microsoft Power Platform Cancel reply

Visitors

2,098,402 hits

Top Posts