From 3dd7e9e4cae1b4a8ec06507eed99f6b6e5cb9788 Mon Sep 17 00:00:00 2001 From: Thomas Deinhamer Date: Mon, 8 May 2017 23:50:48 +0200 Subject: [PATCH 1/2] Add `cors` option --- types/browser-sync/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/browser-sync/index.d.ts b/types/browser-sync/index.d.ts index 84b604c993..a122a00653 100644 --- a/types/browser-sync/index.d.ts +++ b/types/browser-sync/index.d.ts @@ -134,6 +134,12 @@ declare namespace browserSync { * Default: default */ browser?: string | string[]; + /** + * Add HTTP access control (CORS) headers to assets served by Browsersync. + * Default: false + * Note: requires at least version 2.16.0 + */ + cors?: boolean; /** * Requires an internet connection - useful for services such as Typekit as it allows you to configure * domains such as *.xip.io in your kit settings From e3536dddfaf572c9e2bb034d01fbd4e9811568eb Mon Sep 17 00:00:00 2001 From: Thomas Deinhamer Date: Mon, 8 May 2017 23:55:55 +0200 Subject: [PATCH 2/2] Update definitions header for browser-sync --- types/browser-sync/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/browser-sync/index.d.ts b/types/browser-sync/index.d.ts index a122a00653..449063192d 100644 --- a/types/browser-sync/index.d.ts +++ b/types/browser-sync/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for browser-sync // Project: http://www.browsersync.io/ // Definitions by: Asana , Joe Skeen +// Thomas "Thasmo" Deinhamer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped ///