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

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

Issue 2350403003: 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 a1623b8bdeb94d3aba12461fe41987e0c67b34d1..ca99fe8c5aa14748ee818a2ff6ad4d9be15b15d9 100644
--- a/chrome/browser/ui/webui/cast/cast_ui.cc
+++ b/chrome/browser/ui/webui/cast/cast_ui.cc
@@ -33,7 +33,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