Should I still set X-XSS-Protection on a modern site?
No current browser acts on it; Chrome, Edge, and Safari removed the filter and Firefox never had it. Most guidance recommends omitting the header or sending 0, then relying on a strong Content Security Policy and output encoding. Sending 1; mode=block does nothing useful and can trigger old, buggy behaviour.