UNPKG

@dazejs/framework

Version:

Daze.js - A powerful web framework for Node.js

16 lines (15 loc) 559 B
import { Next } from '../../../http/middleware'; import { Request } from '../../../http/request'; import { Response } from '../../../http/response'; import { MiddlewareInterface } from '../../../interfaces'; export declare class CORSMiddleware implements MiddlewareInterface { options: any; constructor(options: any); parseOptions(options: any): any; get origin(): any; get maxAge(): any; get credentials(): any; get allowMethods(): any; get allowHeaders(): any; resolve(request: Request, next: Next): Promise<Response>; }