Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: templates/manifest.json.tmpl

Issue 29496582: Issue 5448 - Add content_security_policy to the manifest.json for Chrome-extensions (Closed)
Patch Set: Created July 24, 2017, 1:48 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
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: templates/manifest.json.tmpl
diff --git a/templates/manifest.json.tmpl b/templates/manifest.json.tmpl
index 8df2148f5aa16931bab9c48b8197f243855f3f0f..e69f5ce197b989f3ebddeee8a082b5d4b7cdceee 100644
--- a/templates/manifest.json.tmpl
+++ b/templates/manifest.json.tmpl
@@ -117,5 +117,9 @@
},
{%- endif %}
+ {%- if metadata.has_option('general', 'contentSecurityPolicy') %}
+ "content_security_policy": {{metadata.get('general', 'contentSecurityPolicy')|json}},
+ {%- endif %}
+
"_dummy": false
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld