Chromium Code Reviews| 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..225fbd726715ceedf88d02c12d8da3724a6f454d 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'" || |
| + source == "http://127.0.0.1" || |
| + source == "http://localhost" || |
|
abarth-chromium
2012/08/13 15:50:01
This one should probably be case insensitive.
abarth-chromium
2012/08/13 15:50:42
Do we want to allow non-default ports? You might
|
| StartsWithASCII(source, "https://", true) || |
| StartsWithASCII(source, "chrome://", true) || |
| StartsWithASCII(source, "chrome-extension://", true) || |