Description
Endpoints configured withhttp:// should use https:// in production to ensure encrypted communication.
Bad Code
Good Code
Properties
- Category: Configuration
- Severity: Warning
- Enabled by default: True
- Code fix available: False
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use HTTPS for production endpoints
http:// should use https:// in production to ensure encrypted communication.
builder.Services.AddHttpClient("api", c =>
c.BaseAddress = new Uri("http://api.example.com"));
builder.Services.AddHttpClient("api", c =>
c.BaseAddress = new Uri("https://api.example.com"));
dotnet_diagnostic.AL0083.severity = warning
Was this page helpful?
