> ## Documentation Index
> Fetch the complete documentation index at: https://ancplua.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AL0083 - Insecure endpoint

> Use HTTPS for production endpoints

Source: [Al0083InsecureEndpointAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/Al0083InsecureEndpointAnalyzer.cs)

## Description

Endpoints configured with `http://` should use `https://` in production to ensure encrypted communication.

## Bad Code

```csharp theme={null}
builder.Services.AddHttpClient("api", c =>
    c.BaseAddress = new Uri("http://api.example.com"));
```

## Good Code

```csharp theme={null}
builder.Services.AddHttpClient("api", c =>
    c.BaseAddress = new Uri("https://api.example.com"));
```

## Properties

* **Category**: Configuration
* **Severity**: Warning
* **Enabled by default**: True
* **Code fix available**: False

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0083.severity = warning
```
