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

# open-redirect

> An HTTP redirect destination is controlled by request data.

## What it flags

A redirect target whose site comes from request data. A fixed origin or an enforced relative-path check can keep the target on site. A Referer target is contextual.

A query-only redirect is contextual when the rule traces the configured-origin check and the redirect formatter to the same target. Pass `--include-contextual` to see these findings.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "open-redirect": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.