
Microsoft Clarity Adds Support for Custom Trusted Types Policies Enhancing Security
11 days ago
Microsoft Clarity now supports custom Trusted Types policies, enhancing security by allowing developers to define their own policies to prevent XSS attacks. This update offers flexibility in handling content, improves compliance, and maintains functionality. Developers can create policies using trustedTypes.createPolicy() and update the Clarity tag with a trustedTypes parameter. Unsupported browsers fall back to default behavior.