Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Httponly prevents xss

Shulou Source: shulou.com Published: 2022-06-01 07:29:39 10月03日 Update

What does httponly do? Htyponly is to prevent xss vulnerabilities to steal your cookie. How to set it up? It's simple.

Setcookie ("test", 'without httponly',time () + 3600mm 24, ", 0)

Setcookie ("test1", "with httponly", time () + 3600mm 24, ",", 0jue 1)

You cannot read it using the [xss_clean] test1.

Tags: Loopholes Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info Shulou Technology Huawei Docker macOS