Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
type alias Protocol.Network.CorsError
import { type Protocol } from "https://deno.land/x/puppeteer@14.1.1/vendor/puppeteer-core/puppeteer/api-docs-entry.d.ts";
const { CorsError } = Protocol.Network;

The reason why request was blocked.

definition: (
| "DisallowedByMode"
| "InvalidResponse"
| "WildcardOriginNotAllowed"
| "MissingAllowOriginHeader"
| "MultipleAllowOriginValues"
| "InvalidAllowOriginValue"
| "AllowOriginMismatch"
| "InvalidAllowCredentials"
| "CorsDisabledScheme"
| "PreflightInvalidStatus"
| "PreflightDisallowedRedirect"
| "PreflightWildcardOriginNotAllowed"
| "PreflightMissingAllowOriginHeader"
| "PreflightMultipleAllowOriginValues"
| "PreflightInvalidAllowOriginValue"
| "PreflightAllowOriginMismatch"
| "PreflightInvalidAllowCredentials"
| "PreflightMissingAllowExternal"
| "PreflightInvalidAllowExternal"
| "PreflightMissingAllowPrivateNetwork"
| "PreflightInvalidAllowPrivateNetwork"
| "InvalidAllowMethodsPreflightResponse"
| "InvalidAllowHeadersPreflightResponse"
| "MethodDisallowedByPreflightResponse"
| "HeaderDisallowedByPreflightResponse"
| "RedirectContainsCredentials"
| "InsecurePrivateNetwork"
| "InvalidPrivateNetworkAccess"
| "UnexpectedPrivateNetworkAccess"
| "NoCorsRedirectModeNotFollow"
)