BlazorIntersectionObserver icon indicating copy to clipboard operation
BlazorIntersectionObserver copied to clipboard

How to use BlazorIntersectionObserver inside an iframe?

Open ajmorada opened this issue 2 years ago • 0 comments

Hello,

I would like to ask how do I go about in using the component inside an iframe?

I tried to run the Blazor.IntersectionObserver.Client project in my local environment and it works as expected. But when I try to embed the URL of the project in an iframe in a different html page, the BlazorIntersectionObserver no longer works.

Please see the video below:

It shows how the sample works and how the sample works within an iframe

An exception can also be seen in the browser console

BlazorIntersectionObserver-IFrame-Issue-Console-Error

This is the source of the iframe html page.

<html>
<head><title>Test Iframe for Blazor 1</title></head>
<body>		
    <iframe src="https://localhost:5001/" height="1200" width="800" title="Iframe Example"></iframe> 
</body>
</html>

Thank you in advance for your advice

ajmorada avatar Dec 14 '23 12:12 ajmorada