-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Labels
Description
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.