Merge pull request #16314 from SpencerKaiser/bugfix/cors-types

fix(common): change requestOrigin type
This commit is contained in:
Kamil Mysliwiec
2026-02-06 12:06:34 +01:00
committed by GitHub

View File

@@ -10,7 +10,7 @@ type StaticOrigin = boolean | string | RegExp | (string | RegExp)[];
* @publicApi
*/
export type CustomOrigin = (
requestOrigin: string,
requestOrigin: string | undefined,
callback: (err: Error | null, origin?: StaticOrigin) => void,
) => void;