Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.224
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
wb /
node_modules /
@types /
cors /
Delete
Unzip
Name
Size
Permission
Date
Action
LICENSE
1.11
KB
-rwxrwxr-x
2022-08-30 11:49
README.md
2.41
KB
-rwxrwxr-x
2022-08-30 11:49
index.d.ts
1.78
KB
-rwxrwxr-x
2022-08-30 11:49
package.json
913
B
-rwxrwxr-x
2022-08-30 11:49
Save
Rename
# Installation > `npm install --save @types/cors` # Summary This package contains type definitions for cors (https://github.com/expressjs/cors/). # Details Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cors. ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cors/index.d.ts) ````ts // Type definitions for cors 2.8 // Project: https://github.com/expressjs/cors/ // Definitions by: Alan Plum <https://github.com/pluma> // Gaurav Sharma <https://github.com/gtpan77> // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import { IncomingHttpHeaders } from 'http'; type StaticOrigin = boolean | string | RegExp | (boolean | string | RegExp)[]; type CustomOrigin = (requestOrigin: string | undefined, callback: (err: Error | null, origin?: StaticOrigin) => void) => void; declare namespace e { interface CorsRequest { method?: string | undefined; headers: IncomingHttpHeaders; } interface CorsOptions { /** * @default '*'' */ origin?: StaticOrigin | CustomOrigin | undefined; /** * @default 'GET,HEAD,PUT,PATCH,POST,DELETE' */ methods?: string | string[] | undefined; allowedHeaders?: string | string[] | undefined; exposedHeaders?: string | string[] | undefined; credentials?: boolean | undefined; maxAge?: number | undefined; /** * @default false */ preflightContinue?: boolean | undefined; /** * @default 204 */ optionsSuccessStatus?: number | undefined; } type CorsOptionsDelegate<T extends CorsRequest = CorsRequest> = ( req: T, callback: (err: Error | null, options?: CorsOptions) => void, ) => void; } declare function e<T extends e.CorsRequest = e.CorsRequest>( options?: e.CorsOptions | e.CorsOptionsDelegate<T>, ): ( req: T, res: { statusCode?: number | undefined; setHeader(key: string, value: string): any; end(): any; }, next: (err?: any) => any, ) => void; export = e; ```` ### Additional Details * Last updated: Fri, 09 Jul 2021 07:31:29 GMT * Dependencies: none * Global values: none # Credits These definitions were written by [Alan Plum](https://github.com/pluma), and [Gaurav Sharma](https://github.com/gtpan77).