interface CrossDomainOptions

Interface for the crossdomain middleware options. By default, the 'Cross-Origin-Resource-Policy' header will be set to 'none'.

Properties

optional
permittedPolicies: string

The permitted policies for the 'Cross-Origin-Resource-Policy' header. Valid permitted policies are:

  • 'none': 'Cross-Origin-Resource-Policy' header will be set to 'none'
  • 'master-only': 'Cross-Origin-Resource-Policy' header will be set to 'master-only'
  • 'by-content-type': 'Cross-Origin-Resource-Policy' header will be set to 'by-content-type'
  • 'all': 'Cross-Origin-Resource-Policy' header will be set to 'all'

Usage

import { type CrossDomainOptions } from "types/mod.ts";