Adding security header handling