# Alepha - Server Cors

## Installation

Part of the `alepha` package. Import from `alepha/server/cors`.

```bash
npm install alepha
```

## Overview

Cross-Origin Resource Sharing configuration.

**Features:**

- CORS policy definition
- `CAPACITOR_ORIGINS`, the two WebView origins of a Capacitor app

## API Reference

### Primitives

- [`$cors`](https://latest.alepha.dev/docs/reference-primitives-$cors.md) - Middleware that applies CORS headers to the response and handles OPTIONS preflight.
