Skip to content

Commit c097202

Browse files
committed
Fix bug introduced in #1536
1 parent 5cc6fdd commit c097202

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/v2/providers/https.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ export function onRequest(
269269
// on the origin header of the request. If there is only one element in the
270270
// array, this is unnecessary.
271271
if (Array.isArray(origin) && origin.length === 1) {
272-
origin = origin[1];
272+
origin = origin[0];
273273
}
274274
const middleware = cors({ origin });
275275

0 commit comments

Comments
 (0)