> ## 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.

# cors-credentials-any-origin

> A credentialed CORS response allows arbitrary origins.

## What it flags

CORS options allow credentials with origin `*`, `true`, a match-everything regex or a callback that always accepts. Listed or configured origins are clean.

An explicit `process.env.NODE_ENV === 'development'` check, written in the condition or in a local `const` flag such as `const isDev = process.env.NODE_ENV === 'development'`, can establish that a policy is for development. The rule still reports policies that can run when `NODE_ENV` is unset or unknown.

## Configuration

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

```json theme={null}
{
  "rules": { "cors-credentials-any-origin": "off" }
}
```


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