mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 03:31:47 +00:00
Add test for mixed type array
This commit is contained in:
@@ -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']
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user