From bf50e05d2979f8b31dbe6698cb829bb4ecb97ec4 Mon Sep 17 00:00:00 2001 From: Miguel Ramos Date: Fri, 16 Sep 2016 00:18:07 +0100 Subject: [PATCH] Cors plugin model for issue #12. --- src/app/shared/models/plugins/cors.model.ts | 14 ++++++++++++++ src/app/shared/models/plugins/index.ts | 1 + 2 files changed, 15 insertions(+) create mode 100644 src/app/shared/models/plugins/cors.model.ts 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';