We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a5e081 commit b511608Copy full SHA for b511608
packages/event-handler/src/rest/middleware/cors.ts
@@ -94,7 +94,10 @@ function resolveOrigin(
94
95
if (typeof originConfig === 'function') {
96
const result = originConfig(origin, reqCtx);
97
- return typeof result === 'boolean' ? (result ? origin || '*' : '') : result;
+ if (typeof result === 'boolean') {
98
+ return result ? (origin || '*') : '';
99
+ }
100
+ return result;
101
}
102
103
if (Array.isArray(originConfig)) {
0 commit comments