JavaScript Security Best Practices

Which of the following cookie settings helps prevent XSS attacks?
document.cookie = 'sessionId=abc123; HttpOnly; Secure; SameSite=Strict';
Next Question (8/20)