HTTP cookie: Difference between revisions

Content deleted Content added
Cleaner
Line 40:
 
===HttpOnly cookie===
HttpOnly cookies can only be used when transmitted via [[HTTP]] (or [[HTTP Secure|HTTPS]]). They are not accessible through non-HTTP APIs such as [[JavaScript]]. This restriction eliminates the threat of cookie theft via cross-site scripting (XSS), while leaving the threats of [[Cross-site_tracing|cross-site tracing]] (XCT)]] and [[Cross-site_request_forgery|cross-site request forgery]] (CSRF)]] intact.
 
===Third-party cookie===