The security headers by the name can explain that are the commands the web applications to configure security measures in the web browsers. The security headers can prevent many client websites from getting hacked or cyberattacked by online hackers.
This header prevents your site from being framed (or embedded into) another website. This can help prevent clickjacking attacks where users are tricked into clicking links that take them to malicious websites.
2. Content Security Policy
The content security policy allows us to specify what resources we want to allow our visitors to load onto their own servers. We use this feature to block scripts and other potentially dangerous code from loading on third party sites.
3. Referrer Policy
The referrer policy allows us to specify whether or not we want to allow our users to leave our site via links they have clicked elsewhere.