Filter by topic
If you can, pass the connection string as a parameter to the class library. Second option is System.Configuration.ConfigurationManager
Disable CORS for IIS 10 website by allowing all origins in two simple steps.
If you are seeing "404 Not Found" for .woff, .woff2 or for .json files even if they exist on your azure web app, this is the post for you.
In this post, I am sharing one of my security bug hunting experience in an older ASP.NET web form project.
Use the provided rewrite rule to redirect HTTPS requests to HTTP.
Use IIS Rewrite rule to redirect all HTTP request to HTTPS.
Use IIS rewrite rule to redirect (301) all www requests to non-www.
Adding rewrite rule in release config is handy so that it will not affect during Debug mode.
When considering SEO, either you have to stick with www versioned url or non-www URLs. Having both accessible for a domain is a bad practice.