Table of content Macro inside Dynamic content macro iFrame produces CORS error

Hi Community,

when we add the table of content macro inside one of our macros (dynamic content macro, rendered inside an iframe), it produces a CORS issue. It tries to load the editor content via an ajax call, but without using the AP.request bridge.

Does anybody now how we can prevent or fix this, without simply removing it from the body we convert when using the convert API or afterwards and remove it from the rendered html?

Thank you for any hint.

Cheers, Ben