From b772907b2d527ea471dcaaab3a078ae81ad3ba3e Mon Sep 17 00:00:00 2001 From: Muhammad Fawwaz Orabi Date: Fri, 3 Nov 2017 13:40:51 +0200 Subject: [PATCH] Add test for mixed type array --- types/cors/cors-tests.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/cors/cors-tests.ts b/types/cors/cors-tests.ts index 848d81af09..83975549c7 100644 --- a/types/cors/cors-tests.ts +++ b/types/cors/cors-tests.ts @@ -28,6 +28,9 @@ app.use(cors({ app.use(cors({ origin: /example\.com$/ })); +app.use(cors({ + origin: [/example\.com$/, 'http://example.com'] +})); app.use(cors({ origin: ['http://example.com', 'http://fakeurl.com'] }));