Monday, February 12, 2024

Add Secure and httpOnly Flags to Every Set-Cookie Response in Apache httpd

 Add Secure and httpOnly Flags to Every Set-Cookie Response in Apache httpd


in htaccess file

Header always edit Set-Cookie (.*) "$1; HTTPOnly"   

Header always edit Set-Cookie (.*) "$1; Secure"



check open ssh version

ssh -V

update open ssh 



check apache version 

apache2 -v


For update apache on server 

     sudo apt update

    check vesion provided and have version on server

    apt-cache policy apache2

    sudo apt install apache2

No comments:

Post a Comment