Skip to content
November 12, 2026
  • Bluesky
  • Facebook
  • Linkedin
  • Mastodon
  • RSS
  • Twitter
  • Youtube

Daily CyberSecurity

Zero-hour alerts. Unmatched analysis.

Primary Menu
  • Home
  • ADVISORIES
    • Microsoft
    • Fortinet
    • Ivanti
    • Cisco
    • Linux
  • CVE Data
    • CVE Watchtower
    • Top Exploited CVEs
    • CVE Stats by Vendor
    • Q3 2026 Report
    • CVE Alerts
    • CVE Alert Settings
    • Pricing
  • Cyber Criminals
  • Data Leak
  • Free Tools
    • CVSS 3.1 Calculator
    • Certificate Viewer
    • DNS Lookup
    • Encoder & Hash Generator
    • IP / Subnet Calculator
    • Whois Lookup
  • Malware
  • Vulnerability
  • Submit Press Release
Light/Dark Button
  • Home
  • Technique
  • Configure Security HTTP Headers to Prevent Vulnerabilities
  • Technique

Configure Security HTTP Headers to Prevent Vulnerabilities

Do Son August 17, 2017 5 minutes read

HTTP is short for HyperText Transfer Protocol, HTTP is a set of standards that allow users of the World Wide Web to exchange information found on web pages. When accessing any web page entering http:// in front of the address tells the browser to communicate over HTTP. For example, the URL for Computer Hope is https://www.computerhope.com. Today’s browsers no longer require HTTP in front of the URL since it is the default method of communication. However, it is kept in browsers because of the need to separate protocols such as FTP.

X-Frame-Options

The X-Frame-Options HTTP response header is used to give the browser a flag that allows a page to be displayed in <frame>, <iframe>, or <object>. Web sites can use this feature to ensure that the content of their site is not embedded in someone else’s website, and thus avoid the click hijacking (clickjacking) attacks. X-Frame-Options has three values, namely: DENY, SAMEORIGIN, ALLOW-FROM

DENY: that the page is not allowed to show in the frame, even in the same domain name of the nest is not allowed.

SAMEORIGIN: Indicates that the page can be displayed in the frame of the same domain name page.

ALLOW-FROM: Indicates that the page can be displayed in the frame of the specified source.

In other words, if set to DENY, not only in someone else’s website frame will not be embedded when embedded in the same domain name page will not be loaded. On the other hand, if set to SAMEORIGIN, then the page can be nested in the same domain name frame.

Configure Apache

Configuring Apache To send an X-Frame-Options header on all pages, you need to add the following line to the ‘site’ configuration:

Header always append X-Frame-Options SAMEORIGIN

Configure nginx

Configure nginx to send the X-Frame-Options header, add the following line to the configuration of ‘http’, ‘server’ or ‘location’:

add_header X-Frame-Options SAMEORIGIN;

Configure IIS

Configure IIS to send the X-Frame-Options response header and add the following configuration to the Web.config file:

<system.webServer>

... <httpProtocol>
<customHeaders>
<add name="X-Frame-Options" value="SAMEORIGIN" />
</customHeaders>
</httpProtocol>

...</system.webServer>

X-Content-Type-Options

There are various types of resources on the Internet, usually the browser will be based on the response to the Content-Type field to distinguish their type. For example: “text / html” represents html document, “image / png” is PNG picture, “text/css” is CSS style document. However, some of the resources of the Content-Type is wrong or not defined. At this point, some browsers will enable MIME-sniffing to guess the type of the resource, parse the content and execute it.

For example, even if we specify an HTML document Content-Type as “text / plain”, in IE8- this document will still be used as html to resolve. Using this feature of the browser, an attacker can even make a request that should have been parsed as an image. Through the following response head can disable the browser type guess behavior:

X-Content-Type-Options: nosniff

This value is fixed to nosniff

Access-Control-Allow-Origin

Cross-original resource sharing (CORS) allows websites to share content between them. To enable secure cross-domain access between sites, you can set up Access-Control-Allow-Origin to allow specified sites to cross-domain access to local resources.

Simple explanation

Only when the target page of the response, including the Access-Control-Allow-Origin this header, and its value in our own domain name, the browser allows us to get the data of its page for the next step. Such as:

Access-Control-Allow-Origin: https://securityonline.info

If its value is set to *, it means that anyone can use:

Access-Control-Allow-Origin: *

In the production environment we will not use *, because this is very insecure.

X-XSS-Protection

The X-XSS-Protection response header is a feature of Internet Explorer, Chrome, and Safari, and the browser stops loading the page when a cross-site scripting attack (XSS) is detected. While these protections are essentially unnecessary in modern browsers, when the site implements a powerful Content-Security-Policy to disable inline JavaScript (‘unsafe-inline’), they can still support CSP Older browsers provide protection for users.

Parameter Explanation

X-XSS-Protection: 0

Disable XSS filtering.

X-XSS-Protection: 1

Enable XSS filtering (usually the browser is the default). If a cross-site scripting attack is detected, the browser will clear the page (remove the unsafe portion).

X-XSS-Protection: 1; mode=block

Enable XSS filtering. If an attack is detected, the browser will not clear the page, but will prevent the page from loading.

X-XSS-Protection: 1; report=<reporting-uri>

Enable XSS filtering. If a cross-site scripting attack is detected, the browser will clear the page and send the violation report using the functionality of the CSP report-uri directive.

HTTP Strict Transport Security (HSTS)

HTTP Strict Transmission Security (HSTS) is a security feature that the web server uses to tell the browser to communicate with HTTPS instead of using HTTP.

HSTS causes the Web server to tell the browser not to use HTTP access, and automatically replace all HTTP access to the site with HTTPS access on the browser side.

Content Security Policy

Content Security Policy is a computer security flag that is primarily used to prevent cross-site scripting requests (XSS), click hijacking and code injection attacks. CSP prevents malicious code from being loaded by defining the location and content of the script that allows loading.

Basic usage

The CSP is defined by the Content-Security-Policy of the HTTP header (the old version is X-Content-Security-Policy). Each HTTP request returns a maximum of CSP headers (multiple duplicate CSP policies will take the union). The format of the CSP header is:

Content-Security-Policy: policy

Where the policy parameter is a string describing the CSP policy directive. A policy consists of two parts, the name (constraint policy range) and the value (the path that allows the script to execute). Multiple Policy rooms are separated by commas. The value of Policy consists of multiple source expressions (source-expression), each of which can be a hash value for hosts, ports, keywords, and Base64 encoded.

More info CSP, please read this article.

Tags: Access-Control-Allow-Origin Content Security Policy Security HTTP header X-Content-Type-Options X-Frame-Options X-XSS-Protection

Search

CVE ALERTS
📈

EPSS Spike Alerts
Catch risk spikes before they make headlines.

🎯

Custom EPSS/CVSS
Set score thresholds to effectively filter noise.

🛡️

Exploit Intel
Real-world exploit signals beyond the KEV catalog.

🐙

GitHub Issues
Auto-create alert tickets without duplication.

📬

Weekly Digest
Clean summaries, eliminating email spam.

🏷️

Watchlist Groups
Tag vulnerabilities by team (Infra/AppSec/SOC).

🔀

Smart Routing
Route chat channels based on severity levels.

🚨

RBP Tracker
Early warning detection and tracking system.

Subscribe – $7/mo or try free for 14 days →

🚨 Active Exploits in the Wild

  • CVE-2026-20320CVSS 7.5
    A vulnerability in the Open Client Interface (OCI) XML Parser of Cisco BroadWorks could allow an unauthenticated, remote...
    CISA KEV📅 Added to KEV: Nov 10, 2026
  • CVE-2026-111793CVSS 4.3
    Openwave Webtop Media Transcoder does not enforce administrator-defined file type restrictions to restrict the file-types to be converted....
    CISA KEV📅 Added to KEV: Nov 10, 2026
  • CVE-2026-111560CVSS 8.6
    Improper neutralization of shell metacharacters in the timezone configuration field in certain Barracuda appliance products using common Barracuda...
    CISA KEV📅 Added to KEV: Nov 10, 2026
  • CVE-2026-116606CVSS 9.3
    An authentication bypass in Barracuda Email Security Gateway versions earlier than 9.4.0.030 allows an unauthenticated remote attacker to...
    CISA KEV📅 Added to KEV: Nov 10, 2026
  • CVE-2026-125350
    Use after free in XML. Reported by anonymous on 2026-11-06. Google is aware that an exploit for CVE-2026-125350...
    CISA KEV📅 Added to KEV: Nov 10, 2026
  • CVE-2026-124194CVSS 6.5
    Product ui does not warn user of unsafe actions in Microsoft Office Outlook allows an unauthorized attacker to...
    CISA KEV📅 Added to KEV: Nov 10, 2026
  • CVE-2026-123751CVSS 9.8
    The WP Duplicate WordPress plugin through 1.1.11 does not properly verify a request authentication value and does not...
    Watchtower Verified📅 Updated: Nov 9, 2026
  • CVE-2026-114713CVSS 8.6
    The labeled-response module in UnrealIRCd 6.0.0 before 6.2.7.1 does not escape the IRCv3 "label" message tag when echoing...
    Admin intel📅 Updated: Nov 9, 2026
Powered by CVE Watchtower

Critical Vulnerabilities

  • CVE-2026-90908CVSS 9.3
    A vulnerability in the GenericAdminAuthenticator component of Azul Payara Server and Azul Payara Micro allows a remote, unauthenticated...
    📅 Updated: Nov 12, 2026
  • CVE-2026-110003CVSS 9.3
    A vulnerability in the administration REST interface of Azul Payara allows a remote, unauthenticated attacker to bypass secure-admin...
    📅 Updated: Nov 12, 2026
  • CVE-2026-8333CVSS 9.4
    A stored cross-site scripting vulnerability in Microchip the TimePictra platform could allow an authenticated, low-privileged attacker to store...
    📅 Updated: Nov 12, 2026
  • CVE-2026-12591CVSS 9.9
    Zohocorp ManageEngine M365 Manager Plus versions below 4818 is affected by an authenticated technician may exploit insufficient permission validation in the delegated administration...
    📅 Updated: Nov 12, 2026
  • CVE-2026-12507CVSS 9.1
    Zohocorp ManageEngine AssetExplorer versions below 7860, ServiceDesk Plus versions below 15290, ServiceDesk Plus MSP versions below 15150, and...
    📅 Updated: Nov 12, 2026
  • CVE-2026-107935CVSS 9.3
    A path traversal vulnerability was found in gvproxy, the network forwarder provided by the gvisor-tap-vsock package. The unauthenticated...
    📅 Updated: Nov 12, 2026
  • CVE-2026-125883CVSS 9.3
    Improper restriction of XML external entity reference vulnerability in N-able N-central allows XML Schema Poisoning. This issue affects...
    📅 Updated: Nov 12, 2026
  • CVE-2026-76954CVSS 9.8
    An improper neutralization of special elements used in an SQL command vulnerability in the Auth API in Synology...
    📅 Updated: Nov 12, 2026
Powered by CVE Watchtower

Daily CyberSecurity

  • About Daily CyberSecurity
  • Advertise with us
  • Announcement
  • Contact
  • Contributor Register
  • Login
  • Disclaimer
  • DMCA
  • Privacy Policy

When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works

  • CVE Watchtower
  • CVE Statistics by Vendor 2026
  • Q3 2026 Report
  • Top Exploited CVEs
  • Bluesky
  • Facebook
  • Linkedin
  • Mastodon
  • RSS
  • Twitter
  • Youtube
© 2017 - 2026 Daily CyberSecurity. All Rights Reserved.