From 6cf2d34d21872fc9b94ba38410cf12eeac202670 Mon Sep 17 00:00:00 2001 From: Isabelle Vallet <isabelle.vallet@nexedi.com> Date: Thu, 28 Jan 2016 10:38:53 +0000 Subject: [PATCH] erp5_gadget_interface_validator: Change CSP. --- .../gadget_interface_validator.xml | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_site_module/gadget_interface_validator.xml b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_site_module/gadget_interface_validator.xml index 302a69aba2..e4b6ef5d5d 100644 --- a/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_site_module/gadget_interface_validator.xml +++ b/bt5/erp5_gadget_interface_validator/PathTemplateItem/web_site_module/gadget_interface_validator.xml @@ -363,6 +363,16 @@ <value> <string>string</string> </value> </item> </dictionary> + <dictionary> + <item> + <key> <string>id</string> </key> + <value> <string>configuration_content_security_policy</string> </value> + </item> + <item> + <key> <string>type</string> </key> + <value> <string>string</string> </value> + </item> + </dictionary> </tuple> </value> </item> @@ -397,6 +407,7 @@ <value> <tuple> <string>aggregate/web_page_module/rjs_gadget_erp5_html</string> + <string>caching_policy/must-revalidate</string> </tuple> </value> </item> @@ -404,6 +415,10 @@ <key> <string>configuration_application_title</string> </key> <value> <string>Gadget Interface Validator</string> </value> </item> + <item> + <key> <string>configuration_content_security_policy</string> </key> + <value> <string>default-src \'none\'; img-src \'self\' data:; media-src \'self\' blob:; connect-src \'self\' data:; script-src \'self\' \'unsafe-eval\'; font-src netdna.bootstrapcdn.com; style-src \'self\' netdna.bootstrapcdn.com \'unsafe-inline\' data:; frame-src \'self\' data:</string> </value> + </item> <item> <key> <string>configuration_default_view_action_reference</string> </key> <value> @@ -478,7 +493,7 @@ </item> <item> <key> <string>layout_configuration_form_id</string> </key> - <value> <string>WebSection_viewHateoasPreference</string> </value> + <value> <string>WebSection_viewRenderJSPreference</string> </value> </item> <item> <key> <string>portal_type</string> </key> @@ -741,7 +756,7 @@ </item> <item> <key> <string>serial</string> </key> - <value> <string>946.44751.34537.43673</string> </value> + <value> <string>948.50251.37668.4232</string> </value> </item> <item> <key> <string>state</string> </key> @@ -759,7 +774,7 @@ </tuple> <state> <tuple> - <float>1446476438.92</float> + <float>1453976386.25</float> <string>UTC</string> </tuple> </state> -- 2.30.9