# Error Embedding Lichess \<iframe\> error

**URL:** <https://forums.ankiweb.net/t/error-embedding-lichess-iframe-error/17073>\
**Category:** Help\
**Created:** [January 27, 2022, 4:37am UTC](https://forums.ankiweb.net/t/error-embedding-lichess-iframe-error/17073 "2022-01-27T04:37:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wellbur](https://avatars.discourse-cdn.com/v4/letter/w/f19dbf/32.png) [@wellbur](https://forums.ankiweb.net/u/wellbur)\
**Post date:** [January 27, 2022, 4:37am UTC](https://forums.ankiweb.net/t/error-embedding-lichess-iframe-error/17073/1 "2022-01-27T04:37:52Z")

</div>

I would love to be able to embed interactive Lichess studies in cards.

For example, when I try embedding this iframe:

```auto
<iframe width=600 height=371 src="https://lichess.org/study/embed/ZZj15s0x/nnQ9aYam" frameborder=0></iframe>

```

the frame around the board loads, but the actual chess board does not load, and I get the following error:

```auto
analysisBoard.embed.min.js:1 Uncaught DOMException: Failed to read the 'localStorage' property from 'Window': Access is denied for this document.
    at https://lichess1.org/assets/_3Mpbe0/compiled/analysisBoard.embed.min.js:1:1983
    at https://lichess1.org/assets/_3Mpbe0/compiled/analysisBoard.embed.min.js:1:18909
(anonymous) @ analysisBoard.embed.min.js:1
(anonymous) @ analysisBoard.embed.min.js:1
analysisBoard.min.js:1 Uncaught TypeError: Cannot read property 'make' of undefined
    at analysisBoard.min.js:1
    at analysisBoard.min.js:1
(anonymous) @ analysisBoard.min.js:1
(anonymous) @ analysisBoard.min.js:1
UIzj7XZB:1 Uncaught (in promise) TypeError: analyseEmbed is not a function
    at UIzj7XZB:1

```

I tried modifying the `sandbox` attribute of the iframe, as suggested here, but that did not change the error.

```auto
https://forums.ankiweb.net/t/embed-content-in-anki-using-iframe/2150

```

How can I embed these Lichess interactive iframe’s in my Anki cards?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [May 1, 2023, 4:34am UTC](https://forums.ankiweb.net/t/error-embedding-lichess-iframe-error/17073/2 "2023-05-01T04:34:18Z")

</div>


