---
title: "CopOptions"
source: "https://github.com/remix-run/remix/blob/8905f3943706e1f53696ab83e70a84873cabfc90/packages/cop-middleware/src/lib/cop.ts#L33"
---

# CopOptions

## Summary

Configuration for the cross-origin protection middleware.

## Signature

```ts
interface CopOptions {
  insecureBypassPatterns?: readonly string[]
  onDeny?: CopDenyHandler
  trustedOrigins?: readonly string[]
}

```

## Properties

### `insecureBypassPatterns`

Path patterns that should bypass protection for matching requests.

### `onDeny`

Optional custom response handler for rejected requests.

### `trustedOrigins`

Exact origins that should bypass cross-origin rejection.