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 237d918 commit 6dc9992Copy full SHA for 6dc9992
lib/Server.js
@@ -3123,10 +3123,7 @@ class Server {
3123
// always allow localhost host, for convenience
3124
// allow if value is in allowedHosts
3125
if (Array.isArray(allowedHosts) && allowedHosts.length > 0) {
3126
- for (let hostIdx = 0; hostIdx < allowedHosts.length; hostIdx++) {
3127
- /** @type {string} */
3128
- const allowedHost = allowedHosts[hostIdx];
3129
-
+ for (const allowedHost of allowedHosts) {
3130
if (allowedHost === value) {
3131
return true;
3132
}
0 commit comments