Skip to content

Commit

Permalink
10.3.0: #321
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Aug 5, 2023
1 parent a05a387 commit 286dfb0
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
18 changes: 18 additions & 0 deletions Core/etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- 2023-08-05 -->
<csp_whitelist
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xsi:noNamespaceSchemaLocation='urn:magento:module:Magento_Csp:etc/csp_whitelist.xsd'
>
<policies>
<!-- 2023-08-05
«Refused to load the script 'https://cdn.jsdelivr.net/lodash/4.14.1/lodash.js'
because it violates the following Content Security Policy directive: "script-src <…>"»:
https://github.com/mage2pro/core/issues/321 -->
<policy id='script-src'>
<values>
<value id='cdn.jsdelivr.net' type='host'>cdn.jsdelivr.net</value>
</values>
</policy>
</policies>
</csp_whitelist>
7 changes: 5 additions & 2 deletions Core/view/base/requirejs-config.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
var config = {paths: {
'df': 'Df_Core/my/all'
,'dfHasValue': 'Df_Core/my/hasValue'
// 2023-08-05
// «Refused to load the script 'https://cdn.jsdelivr.net/lodash/4.14.1/lodash.js'
// because it violates the following Content Security Policy directive: "script-src <…>"»:
// https://github.com/mage2pro/core/issues/321
,'df-lodash': 'https://cdn.jsdelivr.net/lodash/4.14.1/lodash'
,'df-lodash-local': 'Df_Core/thirdParty/lodash'
// 2019-08-01 https://github.com/flesler/jquery.scrollTo
,'df-scroll': 'Df_Core/thirdParty/scrollTo'
,'df-uniform': 'Df_Core/my/uniform'
/**
* 2017-10-18
* Note 1.
* «JavaScript Unicode 8.0 Normalization - NFC, NFD, NFKC, NFKD»: https://github.com/walling/unorm
* Note 1. «JavaScript Unicode 8.0 Normalization - NFC, NFD, NFKC, NFKD»: https://github.com/walling/unorm
* Note 2.
* `The ineligible characters should be automatically replaced by the corresponding eligible ones
* while prefilling the cardholder's name
Expand Down
4 changes: 2 additions & 2 deletions Framework/etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ because it violates the following Content Security Policy directive:
"font-src fonts.gstatic.com data: 'self' 'unsafe-inline'"»: https://github.com/mage2pro/core/issues/320 -->
<policy id='font-src'>
<values>
<value id='bootstrapCdn' type='host'>*.bootstrapcdn.com</value>
<value id='*.bootstrapcdn.com' type='host'>*.bootstrapcdn.com</value>
</values>
</policy>
<!-- 2023-08-05
Expand All @@ -23,7 +23,7 @@ https://github.com/mage2pro/core/issues/319
2) https://magento.stackexchange.com/a/312254 -->
<policy id='style-src'>
<values>
<value id='bootstrapCdn' type='host'>*.bootstrapcdn.com</value>
<value id='*.bootstrapcdn.com' type='host'>*.bootstrapcdn.com</value>
</values>
</policy>
</policies>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/core"
,"version": "10.2.9"
,"version": "10.3.0"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit 286dfb0

Please sign in to comment.