diff --git a/src/app/shared/models/plugins/cors.model.ts b/src/app/shared/models/plugins/cors.model.ts new file mode 100644 index 0000000..2114d44 --- /dev/null +++ b/src/app/shared/models/plugins/cors.model.ts @@ -0,0 +1,14 @@ +import { BaseModel } from '../base.model'; + +export class CorsModelConfig extends BaseModel { + name: string; + origin: string; + methods: string; + headers: string; + /* tslint:disable */ + exposed_headers: string; + max_age: number; + preflight_continue: boolean; + /* tslint:enable */ + credentials: boolean; +} diff --git a/src/app/shared/models/plugins/index.ts b/src/app/shared/models/plugins/index.ts index 683a4a8..cd58380 100644 --- a/src/app/shared/models/plugins/index.ts +++ b/src/app/shared/models/plugins/index.ts @@ -5,3 +5,4 @@ export * from './hmac.model'; export * from './jwt.model'; export * from './ldap.model'; export * from './acl.model'; +export * from './cors.model';