Skip to content
Closed

0.x #13

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
166 changes: 121 additions & 45 deletions README.md

Large diffs are not rendered by default.

335 changes: 202 additions & 133 deletions dist/fortify.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/fortify.cjs.js.map

Large diffs are not rendered by default.

12 changes: 0 additions & 12 deletions dist/fortify.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,6 @@ interface DOMFortifyApi {
status(): Readonly<DOMFortifyStatus> | null;
}

/**
* DOMFortify - bolt Trusted Types onto a legacy page so old DOM-XSS sinks get sanitized
* without touching the code. See README for the full picture; the short version:
*
* - Claims the realm's `default` Trusted Types policy and routes every HTML sink through a
* sanitizer. Script sinks (eval, javascript: URLs, script.src) are refused.
* - Does NOT switch enforcement on; a CSP does (header best, `<meta>` works).
* - Must load FIRST: the default policy is winner-takes-all.
* - Fails closed: no sanitizer means sinks throw, never leak.
* - Only covers Trusted Types sinks; inline handlers / style / URL props stay open.
*/

declare function init(options?: DOMFortifyConfig): Readonly<DOMFortifyStatus>;
declare function status(): Readonly<DOMFortifyStatus> | null;
declare const DOMFortify: DOMFortifyApi;
Expand Down
335 changes: 202 additions & 133 deletions dist/fortify.es.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/fortify.es.mjs.map

Large diffs are not rendered by default.

335 changes: 202 additions & 133 deletions dist/fortify.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/fortify.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/fortify.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading