Skip to content

Prevent images from being auto-blocked by OneTrust by Mutation Observer

What does this MR do and why?

Adds a data-ot-ignore attribute to images which are served from our own domain with mutation observer. This might resolve https://gitlab.com/gitlab-org/gitlab-docs/-/issues/1750.

#1750 (comment 1729576328)

Verify that this mutation observer runs before otAutoTrack.js mutation observer.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Configure a local GitLab Docs environment: https://gitlab.com/gitlab-org/gitlab-docs/-/blob/main/doc/setup.md.

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports