Skip to content

Commit 829d326

Browse files
Merge pull request #16314 from SpencerKaiser/bugfix/cors-types
fix(common): change requestOrigin type
2 parents f854f9c + 5058600 commit 829d326

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/common/interfaces/external/cors-options.interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type StaticOrigin = boolean | string | RegExp | (string | RegExp)[];
1010
* @publicApi
1111
*/
1212
export type CustomOrigin = (
13-
requestOrigin: string,
13+
requestOrigin: string | undefined,
1414
callback: (err: Error | null, origin?: StaticOrigin) => void,
1515
) => void;
1616

0 commit comments

Comments
 (0)