Technique 1: Enable Content Security Policy (CSP)
CSP is an initiative by browsers to protect against cross-site scripting (XSS) attacks. To enable CSP on x.com, you can add the following meta tag in your HTML header:
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' https://cdn.example.com;">
Technique 2: Use ARIA Attributes
ARIA (Accessible Rich Internet Applications) attributes provide a way to add accessibility features to interactive elements. You can apply the following attribute to your HTML elements:
<div role="button" aria-label="Submit">Click me!