Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3484)

Unified Diff: chrome/browser/ui/webui/cast/cast_ui.cc

Issue 2347503002: Fix for chrome://cast getting blocked by content security policy. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/cast/cast_ui.cc
diff --git a/chrome/browser/ui/webui/cast/cast_ui.cc b/chrome/browser/ui/webui/cast/cast_ui.cc
index 453b472114a7528a3f8d3195ccae2353ae4bcb9c..13d5e2cccb4fe6bc29f2d5002f2a434108c31d85 100644
--- a/chrome/browser/ui/webui/cast/cast_ui.cc
+++ b/chrome/browser/ui/webui/cast/cast_ui.cc
@@ -32,7 +32,7 @@ CastUI::CastUI(content::WebUI* web_ui)
html_source->AddString("extensionId", extension_id);
html_source->SetJsonPath("strings.js");
html_source->SetDefaultResource(IDR_CAST_HTML);
- html_source->OverrideContentSecurityPolicyObjectSrc("object-src *;");
+ html_source->OverrideContentSecurityPolicyObjectSrc("object-src * chrome:;");
content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), html_source);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698