pressidium-cookie-consent icon indicating copy to clipboard operation
pressidium-cookie-consent copied to clipboard

Manage iframes

Open over-engineer opened this issue 1 year ago • 1 comments

Expanding on #37, we should implement a mechanism to control iframes.

A few use cases where third-party iframes may set cookies include embedded:

  • YouTube videos
  • Vimeo videos
  • Twitch streams
  • Google Maps

A few key points to keep in mind:

  • All iframes should be completely removed initially
  • Users of the plugin should be able to set a (translatable) notice relative to that service (e.g. a different notice should be displayed for YouTube and Vimeo)
  • Iframes should be loaded only after the site visitor has given consent
  • Since we’re already using the Cookie Consent JS library by Orest Bida, we should consider using their iframemanager JS library (docs on integrating IframeManager with CookieConsent)

(cc: @formaciongrafica)

over-engineer avatar Nov 27 '23 14:11 over-engineer