0

I have a custom module that is displaying a twig template with an iframe inside it:

enter image description here

There is JS file also being loaded and when I load the page while I'm logged in as an admin, the iframe shows up fine and everything works. However, when I check the page in an incognito window, the frame doesn't show up and I see these errors in the console:

enter image description here

And the JS file I'm loading does not have 'innerHTML' property. Here is my JS file:

enter image description here

I thought it could've been some type of permission issue but the page still loads for anonymous users, just not the iframe.

1
  • I've also noticed when I console.log in my JS, it logs to my console twice when I'm logged in and the iframe is loading and logs only once when I'm logged out as an anonymous user. Sep 30, 2022 at 15:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.