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 * @publicApi
*/ */
export type CustomOrigin = ( export type CustomOrigin = (
requestOrigin: string, requestOrigin: string | undefined,
callback: (err: Error | null, origin?: StaticOrigin) => void, callback: (err: Error | null, origin?: StaticOrigin) => void,
) => void; ) => void;