Iframe youtube cookies?

Hi all,
Should I be using iframes for youtube videos…if not how else could I display videos without self hosting?
I’m also using iframes for google slides is this ok??
I read somewhere in the distant past that iframes are outdated tech.

Assuming iframes are appropriate for displaying videos I have created a modal where the embed code
is parsed to a variable which the container uses for it’s innerHtml…
On closing the modal the variable is cleared.

All works fine but a log event is being fired creating an unwanted overhead.

image

Also an error came up mentioning samesite cookie and security not set properly.
Haven’t got a clue as to what this means and how to rectify the problem, no experience is working with cookies or their settings.

Any suggestions?

Community Page
Last updated: