@whi/cf-routing - v0.8.0
    Preparing search index...

    Interface WorkerRouterOptions<E>

    Options for WorkerRouter constructor

    interface WorkerRouterOptions<E = unknown> {
        cors?: CorsConfig<E, any>;
    }

    Type Parameters

    • E = unknown
    Index

    Properties

    Properties

    cors?: CorsConfig<E, any>

    CORS configuration for the router. If not provided, default CORS headers (without Access-Control-Allow-Origin) are used. data is typed any: it holds whatever the matched route's middleware set.