I have a third-party code that doesn’t work when it is embedded in an iframe, and therefore needs to be taken out from the Wix Embeds iframe. (This is due to a new security protocol that causes the browsers to not pass info from the iframes.) Can anyone guide me on how to do this?
Thank you
<head>
<title>Client Page to Client Portal Login Sample: SimplicityCollect</title>
<script type="text/javascript">
function checkForMessage() {
var message = getUrlParam('error_msg');
if (message != "")
alert(unescape(message)); }
function getUrlParam(name) {
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.href);
if (results == null)
return "";
else
return results[1]; }
</script>
</head>
<body onload="checkForMessage()">
<form action="https://app.simplicitycollect.com/Login.aspx" method="post">
<input name="client_portal_login" value="true" type="hidden" />
<input name="company_pin" value="2109" type="hidden" />
<input name="login_url" value="https://www.thefaircapital.com/client-login" type="hidden" />
<input name="logout_url" value="https://www.thefaircapital.com/client-login" type="hidden" />
<center>Username: <input name="username" type="text" /><br />
Password: <input name="password" type="password" /><br />
<input value="Login" type="submit" /> </form>
</center>
</body>