diff --git a/Core/etc/csp_whitelist.xml b/Core/etc/csp_whitelist.xml new file mode 100644 index 000000000..aaa645a96 --- /dev/null +++ b/Core/etc/csp_whitelist.xml @@ -0,0 +1,18 @@ + + + + + + + + cdn.jsdelivr.net + + + + \ No newline at end of file diff --git a/Core/view/base/requirejs-config.js b/Core/view/base/requirejs-config.js index b4120fd2d..bd9c0569b 100644 --- a/Core/view/base/requirejs-config.js +++ b/Core/view/base/requirejs-config.js @@ -1,6 +1,10 @@ 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 @@ -8,8 +12,7 @@ var config = {paths: { ,'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 diff --git a/Framework/etc/csp_whitelist.xml b/Framework/etc/csp_whitelist.xml index ffd0b9643..3c8b28f7f 100644 --- a/Framework/etc/csp_whitelist.xml +++ b/Framework/etc/csp_whitelist.xml @@ -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 --> - *.bootstrapcdn.com + *.bootstrapcdn.com - *.bootstrapcdn.com + *.bootstrapcdn.com diff --git a/composer.json b/composer.json index afbea9746..b15c5159f 100644 --- a/composer.json +++ b/composer.json @@ -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"