Skip to content

Commit

Permalink
Patch Release : Merge pull request #409 from helloextend/M247-CSP-bug…
Browse files Browse the repository at this point in the history
…fix_2

added CSP rules for magento 2.4.7
  • Loading branch information
jm-extend authored Aug 6, 2024
2 parents 5a3e2ab + 1168660 commit 33764bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/csp_whitelist.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
<policy id="script-src">
<values>
<value id="*_helloextend_com" type="host">https://*.helloextend.com</value>
<value id="hash_001" type="hash" algorithm="sha256">KZHlBYblIYP4tX324FVPX46za0oJoKk21aOj3W9FsXM=</value>
<value id="hash_002" type="hash" algorithm="sha256">QuHysN6c/5qe4aMDS5vmHINfpyGvbZj91l1plBH8Tsg=</value>
</values>
</policy>
<policy id="connect-src">
Expand Down
1 change: 1 addition & 0 deletions view/frontend/templates/installation.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ $viewModel = $block->getData('viewModel');
<?php $jsonConfig = $viewModel->getJsonConfig(); ?>
<?php if ($jsonConfig): ?>
<?php $libUrl = str_replace('.js', '', $viewModel->getJsMode()); ?>
<!-- hash_002 -->
<script>
require.config({
paths: {
Expand Down
1 change: 1 addition & 0 deletions view/frontend/templates/tracking/checkout-success.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

<?php if ($block->getTrackingEnabled()): ?>
<?php $cartTotal = $block->getCartTotal(); ?>
<!-- hash_001 -->
<script>
require(['Extend_Warranty/js/extendtrk/actions', 'extendSdk'], function(actions) {
//<![CDATA[
Expand Down

0 comments on commit 33764bb

Please sign in to comment.