There was an error while loading. Please reload this page.
1 parent fba71e0 commit 37ef6adCopy full SHA for 37ef6ad
1 file changed
bin/helpers/securityValidation.js
@@ -18,7 +18,8 @@ const path = require('path');
18
// production, staging (bsstag.com) and local development. Anything else is
19
// treated as attacker-controlled and rejected.
20
const ALLOWED_HOST_SUFFIXES = ['.browserstack.com', '.bsstag.com'];
21
-const ALLOWED_EXACT_HOSTS = ['browserstack.com', 'bsstag.com', 'localhost', '127.0.0.1', '::1'];
+// Note: URL parsing yields '[::1]' (bracketed) as the hostname for IPv6 loopback.
22
+const ALLOWED_EXACT_HOSTS = ['browserstack.com', 'bsstag.com', 'localhost', '127.0.0.1', '[::1]'];
23
24
/**
25
* Returns true if the given URL points at a BrowserStack (prod/staging) host or
0 commit comments