Skip to content

Commit

Permalink
Merge pull request #76 from cloudinary/v1.14.4
Browse files Browse the repository at this point in the history
v1.14.4: Updated CSP whitelist
  • Loading branch information
Pniel (Pini) Cohen authored Oct 7, 2020
2 parents 682ccb6 + 11a5e58 commit abb3aae
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 33 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cloudinary/cloudinary-magento2",
"description": "Cloudinary Magento 2 Integration.",
"type": "magento2-module",
"version": "1.14.3",
"version": "1.14.4",
"license": "MIT",
"require": {
"cloudinary/cloudinary_php": "*"
Expand Down
44 changes: 14 additions & 30 deletions etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,51 +3,35 @@
<policies>
<policy id="script-src">
<values>
<value id="cloudinary_main" type="host">cloudinary.com</value>
<value id="cloudinary_main_www" type="host">www.cloudinary.com</value>
<value id="cloudinary_api" type="host">api.cloudinary.com</value>
<value id="cloudinary_media_library" type="host">media-library.cloudinary.com</value>
<value id="cloudinary_product_gallery" type="host">product-gallery.cloudinary.com</value>
<value id="cloudinary_analytics_api" type="host">analytics-api.cloudinary.com</value>
<value id="cloudinary_main" type="host">*.cloudinary.com</value>
<value id="cloudinary_cloudflare_cdnjs" type="host">cdnjs.cloudflare.com</value>
<value id="cloudinary_res" type="host">res.cloudinary.com</value>
</values>
</policy>
<policy id="frame-src">
<values>
<value id="cloudinary_main" type="host">cloudinary.com</value>
<value id="cloudinary_main_www" type="host">www.cloudinary.com</value>
<value id="cloudinary_api" type="host">p.cloudinary.com</value>
<value id="cloudinary_media_library" type="host">media-library.cloudinary.com</value>
<value id="cloudinary_product_gallery" type="host">product-gallery.cloudinary.com</value>
<value id="cloudinary_analytics_api" type="host">analytics-api.cloudinary.com</value>
<value id="cloudinary_main" type="host">*.cloudinary.com</value>
<value id="cloudinary_cloudflare_cdnjs" type="host">cdnjs.cloudflare.com</value>
<value id="cloudinary_res" type="host">res.cloudinary.com</value>
</values>
</policy>
<policy id="connect-src">
<values>
<value id="cloudinary_main" type="host">*.cloudinary.com</value>
</values>
</policy>
<policy id="form-action">
<values>
<value id="cloudinary_main" type="host">*.cloudinary.com</value>
</values>
</policy>
<policy id="img-src">
<values>
<value id="cloudinary_main" type="host">cloudinary.com</value>
<value id="cloudinary_main_www" type="host">www.cloudinary.com</value>
<value id="cloudinary_media_library" type="host">media-library.cloudinary.com</value>
<value id="cloudinary_product_gallery" type="host">product-gallery.cloudinary.com</value>
<value id="cloudinary_res" type="host">res.cloudinary.com</value>
<value id="cloudinary_res_1" type="host">res-1.cloudinary.com</value>
<value id="cloudinary_res_2" type="host">res-2.cloudinary.com</value>
<value id="cloudinary_res_3" type="host">res-3.cloudinary.com</value>
<value id="cloudinary_res_4" type="host">res-4.cloudinary.com</value>
<value id="cloudinary_res_5" type="host">res-5.cloudinary.com</value>
<value id="cloudinary_main" type="host">*.cloudinary.com</value>
<value id="data" type="host">data:</value>
</values>
</policy>
<policy id="style-src">
<values>
<value id="cloudinary_main" type="host">cloudinary.com</value>
<value id="cloudinary_main_www" type="host">www.cloudinary.com</value>
<value id="cloudinary_api" type="host">p.cloudinary.com</value>
<value id="cloudinary_media_library" type="host">media-library.cloudinary.com</value>
<value id="cloudinary_product_gallery" type="host">product-gallery.cloudinary.com</value>
<value id="cloudinary_res" type="host">res.cloudinary.com</value>
<value id="cloudinary_main" type="host">*.cloudinary.com</value>
</values>
</policy>
</policies>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Cloudinary_Cloudinary" setup_version="1.14.3">
<module name="Cloudinary_Cloudinary" setup_version="1.14.4">
<sequence>
<module name="Magento_ProductVideo"/>
<module name="Magento_PageBuilder"/>
Expand Down
2 changes: 1 addition & 1 deletion marketplace.composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "cloudinary/cloudinary",
"description": "Cloudinary Magento 2 Integration.",
"type": "magento2-module",
"version": "1.14.3",
"version": "1.14.4",
"license": "MIT",
"require": {
"cloudinary/cloudinary_php": "*"
Expand Down

0 comments on commit abb3aae

Please sign in to comment.