My new book ASP.NET Core in Action, Second Edition is available now! It supports .NET 5.0, and is available as an eBook or paperback. You even get a free copy of the first edition of ASP.NET Core in Action!
In this post I show how to update the default Razor layouts to load CSS and JS files from a CDN, and how to configure local fallbacks with SRI protection.…
Mass assignment or over-posting is something to bear in mind when building ASP.NET Core apps. In this post I discuss how to stay safe when using Razor Pages.…
In this post I show a simple way to obfuscate email addresses to make it harder for bots to scrape them from your site, similar to Cloudflare Scrape Shield.…
In this post I show how to tell ASP.NET Core to use a random free port on startup, instead of a static value. I also show how to retrieve the value.…
In this post I describe 5 different ways to set which URLs your ASP.NET Core application listens on.…
In this post I describe how you can access the route values from middleware when using endpoint routing in ASP.NET Core 3.0.…
Stay up to the date with the latest posts!