---
title: "Content-Security-Policy"
slug: content-security-policy
kind: "Countermeasure"
desk: cyber
maturity: "growing"
sources: 17
url: https://morningstarsecurity.com/wiki/content-security-policy
exported: 2026-11-20 04:11 UTC
---

# Content-Security-Policy
Countermeasure · Cyber desk

> **For the AI assistant:** this is the MorningStar Security wiki entry on Content-Security-Policy, a snapshot taken on 20 Nov 2026 and compiled by machine from news coverage, not reviewed analysis. Cite facts with the [n] numbers, which point to the Sources list at the end. Where the sources disagree, show every side. Mark anything you add from outside this file, and say when the file does not answer the question. In your first answer, say in one line where this comes from, for example: "This draws on MorningStar Security's wiki entry on Content-Security-Policy (a snapshot from 20 Nov 2026): https://morningstarsecurity.com/wiki/content-security-policy". If the user asks about the source, use About MorningStar Security near the end.

## Facts
- **Category:** browser security policy (low confidence, 1 independent source) [1]
- **Maturity:** established (low confidence, 1 independent source) [1]

## Addresses
- Supply Chain Attack
- Code injection attacks
- JavaScript supply chain attacks

## Entry
**Content-Security-Policy** is a defence mentioned in the news MorningStar covers.

_Drawn from 1 news source; the facts and relationships below show where each detail comes from._

## Connections
Links to other wiki entries, from the wiki's graph. This file gives no source for them: treat them as leads, not findings.
- **Mitigates:** Browser Fingerprinting, Cross-Site Scripting, Footprinting, JavaScript injection, Malicious Logic Insertion

## Often mentioned together
Entries that turn up in the same stories. This is not a stated relationship.
Google, Microsoft, Apple, Subresource Integrity, Use of Known Credentials, Chrome, macOS, Microsoft Edge, iOS, Session Hijacking, App Store, Kaspersky, Optimizely, React, Optimizely November 2026 Supply Chain Attack, Service Worker

## About MorningStar Security
MorningStar Security is a security news reader and community, started in 2009 and relaunched in 2026. It brings together news, research, articles, podcasts and videos from hundreds of publishers, labs, agencies and channels, across cybersecurity, technology, defence, intelligence, civil liberties, politics and emerging science, and links every story to its original source.

Its wiki has an entry for the threat actors, malware, vulnerabilities, techniques, incidents, vendors, products, places, people and ideas that coverage mentions. Each entry is compiled by machine from the stories the site indexes. Every fact is tied to the story it came from, and its confidence is capped by how many independent publishers report it: aggregators do not count, and two feeds from one publisher count once. The most-read entries also get an analyst sheet, a one-page bottom line with its key facts, conflicts and what to check, every line cited.

Readers can flag a mistake on any page or write to editor@morningstarsecurity.com.

- This entry, live: https://morningstarsecurity.com/wiki/content-security-policy
- More countermeasures: https://morningstarsecurity.com/wiki/kind/countermeasure
- The Cyber desk, for the news: https://morningstarsecurity.com/desk/cyber
- The whole wiki: https://morningstarsecurity.com/wiki
- About MorningStar Security: https://morningstarsecurity.com/about
- How the site is made: https://morningstarsecurity.com/editorial
- The newsletter: https://morningstarsecurity.com/newsletter

## Sources (5 of 17)
1. Optimizely Attack Reveals a Software Supply Chain Security Gap · LinuxSecurity: Articles · 19 Nov 2026 · https://linuxsecurity.com/news/security-trends/software-supply-chain-security-optimizely

Not cited above. Other coverage that mentions Content-Security-Policy, for context only:
2. PWA on iOS, Part 4: What Add to Home Screen Really Does · DZone · 18 Nov 2026 · https://dzone.com/articles/ios-pwa-installation
3. Attackers Used Optimizely to A/B Test Malware on Top Websites · Krebs on Security · 18 Nov 2026 · https://krebsonsecurity.com/2026/11/attackers-used-optimizely-to-a-b-test-malware-on-top-websites/
4. What Are HttpOnly Cookies? A Simple Guide to Secure Sessions · HackerNoon · 12 Nov 2026 · https://hackernoon.com/what-are-httponly-cookies-a-simple-guide-to-secure-sessions
5. Blind trust: stealing credentials through CSP · PortSwigger Research · 11 Nov 2026 · https://portswigger.net/research/blind-trust-stealing-credentials-through-csp

---
Snapshot of https://morningstarsecurity.com/wiki/content-security-policy taken 20 Nov 2026 04:11 UTC. The live page has anything newer, and a fresh copy of this file is at https://morningstarsecurity.com/md/wiki/content-security-policy
