# CORS preflight



Operation: optionsStars
OPTIONS /api/stars.json

Access: anonymous. Automatic retries: none. Redirects: manual. Request body limit: 0 bytes.
Default timeout: 30 seconds. Response limit: 16 MiB. Pagination is opt-in and bounded; an exhausted bound reports incomplete execution.

[HTML reference](/developers/api/optionsStars) · [Authoritative schemas](/api/openapi.json)

## Wire contract

```json
{
  "operationId": "optionsStars",
  "summary": "CORS preflight",
  "tags": [
    "stars"
  ],
  "responses": {
    "204": {
      "description": "CORS preflight response"
    }
  }
}
```

## Synthetic examples

### curl

```bash
curl --fail-with-body --max-time 30 --max-filesize 16777216 --request OPTIONS 'https://irvinebroque.com/api/stars.json'
```

### TypeScript

```typescript
import { PublicApi } from '@irvinebroque/public-api';
const api = new PublicApi();
const result = await api.stars.listOptions({});
console.log(result.status, result.headers.get('content-type')); // Keep transient capabilities in memory.
```

### CLI

```bash
irvinebroque stars list-options
```
