# `PaperTiger.Plugs.CORS`
[🔗](https://github.com/EnaiaInc/paper_tiger/blob/v1.2.2/lib/paper_tiger/plugs/cors.ex#L1)

Handles CORS (Cross-Origin Resource Sharing) headers for browser-based testing.

Allows requests from any origin with commonly needed headers and methods.

## Usage

    # In router
    plug PaperTiger.Plugs.CORS

## Headers Added

- `Access-Control-Allow-Origin: *`
- `Access-Control-Allow-Methods: GET, POST, DELETE, OPTIONS`
- `Access-Control-Allow-Headers: Authorization, Content-Type, Idempotency-Key`
- `Access-Control-Max-Age: 86400` (24 hours)

## Preflight Requests

Handles OPTIONS requests for CORS preflight by responding with 200 OK.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
