how to workaround iframe shopify's restriction for a same site content

Highlighted
New Member
2 0 0

Hello everyone,

I'm a shop owner, not exactly a web developer. I do many things on our shop by myself, mainly thanks for what were already asked and answered here (thanks guys).

I'd like to show a page inside other page, using iframe. I read that shopify blocked it for security reason. But, for example, when I cut and paste a facebook content using iframe (option embed content), I don't have the same problem, the content renders great (maybe it's white-listed).

<p>Before</p>
<div><iframe src="/pages/abonnement-newsletter-discount" style="height: 855px; width: auto; border: none;"></iframe></div>
<p>After</p>

Please, would you have any suggestion to help me reach that goal?

My theme, if it's important, is Minimal.

Thanks in advance,

Julie

0 Likes
New Member
2 0 0

Hey guys, please, any suggestion? You don't need to post the solution, I would appreciate the direction to follow :-)

 

I've tried jquery as found on expert exchage, but i did't have success

 

(header)

<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-3.4.0.min.js">
$.get('/pages/abonnement-newsletter-discount', function(data) {
$('#test').html(data);
});
</script>

 

(body)

<p>Before</p>
<div id="test"></div>
<p>After</p>

 

Thanks

0 Likes