UNPKG

@furystack/rest-service

Version:

Repository implementation for FuryStack

11 lines 543 B
import type { IncomingMessage } from 'http'; import type { CorsOptions } from './models/cors-options.js'; import type { ServerResponse } from 'http'; /** * Adds the specified CORS headers to the response * @param options The CORS Options object * @param incomingMessage The incoming message instance * @param serverResponse The outgoing response instance */ export declare const addCorsHeaders: (options: CorsOptions, incomingMessage: IncomingMessage, serverResponse: ServerResponse) => void; //# sourceMappingURL=add-cors-header.d.ts.map