-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CSP 1.1: Add 'child-src', 'worker-src', and 'popup-src'.
Since workers create child browsing contexts, [1] proposes that their threat model is more similar to frames than to scripts, and that they should be governed appropriately. Given that they now may be delivered with their own policies (again, like documents in frames), this claim makes even more sense. This patch synthesizes the two proposals made in [1] by adding new 'worker-src' and 'popup-src' directives to govern the execution contexts created by workers and the auxiliary browsing contexts created by popups respectively. A 'child-src' directive is also introduced, which sets up default source lists for 'frame-src', 'popup-src', and 'worker-src'. [1]: http://lists.w3.org/Archives/Public/public-webappsec/2013Dec/0007.html
- Loading branch information
Showing
1 changed file
with
116 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters