Sec24-04-CSP.pdf

Content Security Policy

postMessage:

Allowed generally

XMLHTTPRequest:

Same-origin policy: Allowed

Cross-origin: May make request, but cannot read (unless CORS flag set)

Image request:

Allowed generally

Isolate content from different origins

Libraries:

Works in Same-Origin, could have trojan horse

Same origin policy limitations:

Coarse, inflexible

Does not restrict actions within execution context

Does not prevent information leaks

Send data in image request

Cross-origin scripts act the same

Browsing Context

Web Workers

Restricting Context

Subresource Integrity

HTTPS