Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-mw committed Feb 28, 2022
1 parent e6f1989 commit 2e7a11d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/addons/microweber_addon/order/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ document.addEventListener("DOMContentLoaded", function(event) {
if (typeof windowhash === 'string' && windowhash.indexOf('frameurl=') > -1) {
var hash = windowhash.split('frameurl=')[1];
var hash = decodeURI(atob(hash))
var domain_check = (new URL(hash));
domain_check = domain_check.hostname;

if(window.location.hostname != domain_check){
alert('You are trying to load a domain search from a different domain. Please use the same domain.');
return;
}


// iframe.src = hash;
} else {

Expand Down

0 comments on commit 2e7a11d

Please # to comment.