Table of Contents

What are the elements of security in HTTP? Security headers and cookie properties explained

About

In HTTP, the security is done via the setting of:

Elements of HTTP security

response HTTP header that control the browser and have an effect on security:

X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Robots-Tag: none
Permissions-Policy: camera=(), microphone=(), geolocation=(), interest-cohort=()

The samesite and cookie scope controls where the browser sends the cookie back (in a cross origin context or not)

Tools