Skip to content
FixSecurityHeadersScan a site

Only the domain and grade are shown. Uncheck to remove it.

www.booking.com

Score 25/100 · Stack AWS CloudFront · HTTP 202

Final URL: https://www.booking.com/ · Scanned Fri, 27 Nov 2026 07:10:20 GMT

PCI DSS 4.0 6.4.3 & 11.6.1NIST 800-171 / CMMC L2OWASP ASVS V14.4SOC 2 CC6

Email me this report

We'll send the grade and a link to this report. One email, no newsletter.

Header results

Your fixes

Detected AWS CloudFront from x-amz-cf-id.

Copy all: AWS CloudFront

Paste into Response headers policy. Attach the policy to the distribution's cache behavior and wait for it to deploy.

Response headers policy
// aws cloudfront create-response-headers-policy --response-headers-policy-config file://policy.json
{
  "Name": "fixsecurityheaders-policy",
  "SecurityHeadersConfig": {
    "ContentSecurityPolicy": {
      "Override": true,
      "ContentSecurityPolicy": "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: https:; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests"
    },
    "ContentTypeOptions": {
      "Override": true
    },
    "FrameOptions": {
      "Override": true,
      "FrameOption": "DENY"
    },
    "ReferrerPolicy": {
      "Override": true,
      "ReferrerPolicy": "strict-origin-when-cross-origin"
    }
  },
  "CustomHeadersConfig": {
    "Quantity": 3,
    "Items": [
      {
        "Header": "Permissions-Policy",
        "Value": "camera=(), microphone=(), geolocation=(), payment=(), usb=()",
        "Override": true
      },
      {
        "Header": "Cross-Origin-Opener-Policy",
        "Value": "same-origin",
        "Override": true
      },
      {
        "Header": "Cross-Origin-Resource-Policy",
        "Value": "same-origin",
        "Override": true
      }
    ]
  }
}
  • The managed SecurityHeadersPolicy is a fine starting point. Use a custom policy when you need your own CSP.
  • Turn on Override so headers from the origin don't win.

Content-Security-Policy

What it does
CSP lists where your page is allowed to load scripts, styles, images, frames and connections from. Anything not on the list gets blocked. It's the best header-level defence against cross-site scripting you have.
Risk if missing
With no CSP, any script that gets onto the page (an XSS bug, a compromised analytics tag, a Magecart skimmer) runs with full access to your users' sessions and whatever they type into your forms.

Recommended value: default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: https:; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests

Content-Security-Policy · AWS CloudFront
// aws cloudfront create-response-headers-policy --response-headers-policy-config file://policy.json
{
  "Name": "fixsecurityheaders-policy",
  "SecurityHeadersConfig": {
    "ContentSecurityPolicy": {
      "Override": true,
      "ContentSecurityPolicy": "default-src 'self'; script-src 'self'; style-src 'self'; img-src 'self' data: https:; object-src 'none'; base-uri 'self'; frame-ancestors 'none'; form-action 'self'; upgrade-insecure-requests"
    }
  },
  "CustomHeadersConfig": {
    "Quantity": 0,
    "Items": []
  }
}

Gotchas

  • Ship it as Content-Security-Policy-Report-Only first and read the violation reports for a week or two before you enforce.
  • 'unsafe-inline' or 'unsafe-eval' in script-src throws away most of the XSS protection. Use nonces or hashes instead.
  • Analytics, chat widgets and payment iframes each need their hosts added. Expect to find a few you forgot about.
  • Send one CSP header, not two. Multiple policies are intersected, so the result is usually stricter than either one and things break in confusing ways.
Full guide: Content-Security-Policy on AWS CloudFront

X-Content-Type-Options

What it does
With nosniff set, the browser trusts the Content-Type you send instead of guessing from the file contents. An uploaded .txt file stays a text file and can't be run as a script.
Risk if missing
MIME sniffing can turn user uploads or JSON responses into something the browser executes as script or applies as a stylesheet.

Recommended value: nosniff

X-Content-Type-Options · AWS CloudFront
// aws cloudfront create-response-headers-policy --response-headers-policy-config file://policy.json
{
  "Name": "fixsecurityheaders-policy",
  "SecurityHeadersConfig": {
    "ContentTypeOptions": {
      "Override": true
    }
  },
  "CustomHeadersConfig": {
    "Quantity": 0,
    "Items": []
  }
}

Gotchas

  • If your server sends wrong Content-Type values (JavaScript served as text/plain is the classic), those files will stop loading once nosniff is on. Fix the types, don't drop the header.
Full guide: X-Content-Type-Options on AWS CloudFront

X-Frame-Options

What it does
X-Frame-Options tells browsers whether other sites may load your pages in an iframe. The modern replacement is the CSP frame-ancestors directive, but plenty of scanners and auditors still look for X-Frame-Options.
Risk if missing
An attacker can load your page in an invisible iframe over their own and trick users into clicking real buttons on it. Changing an email address or confirming a payment are the usual targets.

Recommended value: DENY

X-Frame-Options · AWS CloudFront
// aws cloudfront create-response-headers-policy --response-headers-policy-config file://policy.json
{
  "Name": "fixsecurityheaders-policy",
  "SecurityHeadersConfig": {
    "FrameOptions": {
      "Override": true,
      "FrameOption": "DENY"
    }
  },
  "CustomHeadersConfig": {
    "Quantity": 0,
    "Items": []
  }
}

Gotchas

  • Use SAMEORIGIN if your own site frames its pages.
  • ALLOW-FROM is obsolete and modern browsers ignore it. Use CSP frame-ancestors if you need an allow-list.
  • When CSP frame-ancestors is present, modern browsers ignore X-Frame-Options. Make sure the two agree anyway.
Full guide: X-Frame-Options on AWS CloudFront

Referrer-Policy

What it does
Referrer-Policy decides what URL information the browser sends in the Referer header when users click a link or your page loads something from another site.
Risk if missing
Full URLs can leak to third parties, including password reset tokens, search terms and internal paths you'd rather nobody saw.

Recommended value: strict-origin-when-cross-origin

Referrer-Policy · AWS CloudFront
// aws cloudfront create-response-headers-policy --response-headers-policy-config file://policy.json
{
  "Name": "fixsecurityheaders-policy",
  "SecurityHeadersConfig": {
    "ReferrerPolicy": {
      "Override": true,
      "ReferrerPolicy": "strict-origin-when-cross-origin"
    }
  },
  "CustomHeadersConfig": {
    "Quantity": 0,
    "Items": []
  }
}

Gotchas

  • no-referrer is stricter, but it can wreck analytics attribution and break some payment and SSO flows that check the referrer.
Full guide: Referrer-Policy on AWS CloudFront

Permissions-Policy

What it does
Permissions-Policy switches off powerful browser APIs for your page and anything it embeds, unless you explicitly allow them.
Risk if missing
An injected or third-party script could ask for the camera, microphone, location or payment APIs. Most sites never use these, so there's no reason to leave them available.

Recommended value: camera=(), microphone=(), geolocation=(), payment=(), usb=()

Permissions-Policy · AWS CloudFront
// aws cloudfront create-response-headers-policy --response-headers-policy-config file://policy.json
{
  "Name": "fixsecurityheaders-policy",
  "SecurityHeadersConfig": {},
  "CustomHeadersConfig": {
    "Quantity": 1,
    "Items": [
      {
        "Header": "Permissions-Policy",
        "Value": "camera=(), microphone=(), geolocation=(), payment=(), usb=()",
        "Override": true
      }
    ]
  }
}

Gotchas

  • Allow the features you actually use, for example payment=(self) if your checkout uses the Payment Request API.
  • Drop interest-cohort=() if you copied it from an old guide. FLoC was abandoned and browsers now log a console warning for it.
Full guide: Permissions-Policy on AWS CloudFront

Cross-Origin-Opener-Policy

What it does
COOP puts your page in its own browsing context group, so a window opened from another origin can't get a reference to it (and vice versa).
Risk if missing
Cross-window attacks like XS-Leaks and tabnabbing, plus Spectre-style side channels.

Recommended value: same-origin

Cross-Origin-Opener-Policy · AWS CloudFront
// aws cloudfront create-response-headers-policy --response-headers-policy-config file://policy.json
{
  "Name": "fixsecurityheaders-policy",
  "SecurityHeadersConfig": {},
  "CustomHeadersConfig": {
    "Quantity": 1,
    "Items": [
      {
        "Header": "Cross-Origin-Opener-Policy",
        "Value": "same-origin",
        "Override": true
      }
    ]
  }
}

Gotchas

  • OAuth and payment pop-ups that report back through window.opener will break under same-origin. Use same-origin-allow-popups for those pages.
Full guide: Cross-Origin-Opener-Policy on AWS CloudFront

Cross-Origin-Resource-Policy

What it does
CORP tells browsers which origins are allowed to embed your images, scripts and other files.
Risk if missing
Other sites can embed your resources and use side channels to infer data from them.

Recommended value: same-origin

Cross-Origin-Resource-Policy · AWS CloudFront
// aws cloudfront create-response-headers-policy --response-headers-policy-config file://policy.json
{
  "Name": "fixsecurityheaders-policy",
  "SecurityHeadersConfig": {},
  "CustomHeadersConfig": {
    "Quantity": 1,
    "Items": [
      {
        "Header": "Cross-Origin-Resource-Policy",
        "Value": "same-origin",
        "Override": true
      }
    ]
  }
}

Gotchas

  • Assets that other sites are meant to embed (a public CDN, an embeddable widget) need cross-origin instead.
Full guide: Cross-Origin-Resource-Policy on AWS CloudFront

Raw response headers

curl -I https://www.booking.com/
via: 1.1 70e9f6c79b570a07593d98d3c3eb2fc6.cloudfront.net (CloudFront)
date: Fri, 27 Nov 2026 07:10:20 GMT
server: CloudFront
x-cache: Error from cloudfront
accept-ch: ECT
connection: close
x-amz-cf-id: AVIjhAgeqgN21S3vxu3-rIGwaMcGU6rrV7WFzgx_n5qfd-NCsUvD0A==
content-type: text/html; charset=UTF-8
x-amz-cf-pop: IAD61-P10
cache-control: no-store, max-age=0
content-length: 2008
x-amzn-waf-action: challenge
access-control-max-age: 86400
strict-transport-security: max-age=63072000; includeSubDomains; preload
access-control-allow-origin: *
access-control-allow-methods: OPTIONS,GET,POST
access-control-expose-headers: x-amzn-waf-action