Index: chrome/common/extensions/csp_validator.cc |
diff --git a/chrome/common/extensions/csp_validator.cc b/chrome/common/extensions/csp_validator.cc |
index a57bdb0ce9bbb3288d744dcf2c7da383d015ea7b..20d1a9e4603c866cb5cabf14846fcf7fa23d7386 100644 |
--- a/chrome/common/extensions/csp_validator.cc |
+++ b/chrome/common/extensions/csp_validator.cc |
@@ -46,6 +46,8 @@ bool HasOnlySecureTokens(StringTokenizer& tokenizer) { |
// We might need to relax this whitelist over time. |
if (source == "'self'" || |
source == "'none'" || |
+ StartsWithASCII(source, "http://127.0.0.1", true) || |
+ StartsWithASCII(source, "http://localhost", true) || |
levin
2012/08/13 11:07:23
Does this allow http://localhost.mydomain.com/....
|
StartsWithASCII(source, "https://", true) || |
StartsWithASCII(source, "chrome://", true) || |
StartsWithASCII(source, "chrome-extension://", true) || |