Skip to content

Commit 3e6508d

Browse files
committed
don't inject defaults when allowedHosts includes *
1 parent e66d9ea commit 3e6508d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/app-engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { env } from 'node:process'
22

33
export function getAllowedHosts({ allowedHosts = [], injectDefaults = true } = {}) {
4-
if (!injectDefaults) {
4+
if (!injectDefaults || allowedHosts.includes('*')) {
55
return [...new Set(allowedHosts)]
66
}
77

0 commit comments

Comments
 (0)