| 2 | import { vary } from 'es-vary' |
| 3 | |
| 4 | export interface AccessControlOptions { |
| 5 | origin?: string | boolean | ((req: Request, res: Response) => string) | Array<string> | RegExp |
| 6 | methods?: string[] |
| 7 | allowedHeaders?: string[] |
| 8 | exposedHeaders?: string[] |
| 9 | credentials?: boolean |
| 10 | maxAge?: number |
| 11 | optionsSuccessStatus?: number |
| 12 | preflightContinue?: boolean |
| 13 | } |
| 14 | |
| 15 | /** |
| 16 | * CORS Middleware |
nothing calls this directly
no outgoing calls
no test coverage detected