Skip to content

CSP compatibility #69

@matthewbauer

Description

@matthewbauer

Discussed originally in systemjs/systemjs#704.

Eventually, we're going to need to figure out how to make the loader spec compatible with CSP. This is just a stub for now because I don't think it's an urgent problem but I want to make sure it's being considered.

Here are some basic questions to resolve:

  • Does the loader need to know about the CSP?
  • How can a loader "instantiate" without unsafe-inline or unsafe-eval?
  • Do loaders need special permissions above CSP? (either through a CSP option or some other method)
  • Will external HTML resources like img and link eventually be put through a loader as well?

Right now, SystemJS requires "unsafe-inline" for anything except AMD which doesn't require a translate. We can give SystemJS (and other loaders) special permissions through the "nonce" option for some XSS safety.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions