How to block Cookies from Instagram Embedded Post?

Viewed 681

I have some embedded Instagram posts from other people on my website.

However, I am pretty concerned with the European Data Protection legislation (GDPR) and I would like to avoid using cookies.

Is there any way I can keep those IG posts embedded but with its cookies blocked?

I just found the question How to block iframe cookies?, but it is 8 years old and not specific to Instagram.

Edit: Instagram does not use Iframe

1 Answers

You can use the sandbox property, which allows third-party javascript but restricts them from reading and writing cookies.

<iframe sandbox="allow-scripts" src="..."></iframe>
Related