18 Commits

Author SHA1 Message Date
guybedford
788c3fb722 support loading global without export name in a worker 2016-06-16 18:10:18 +02:00
guybedford
8ee8916b51 clear global require on executions 2016-03-29 15:12:04 +02:00
Aliaksei Sapach
e482c1247f set crossOrigin attribute to allow more error info
Modern browsers restrict the amount of information available to the global event handler (`window.onerror`) when the scripts are loaded from a different origin. In order to mitigate this, the script tags need to set `crossorigin` attribute and the server needs to enable CORS to establish mutual trust.
2016-03-03 21:02:31 +03:00
guybedford
0a26819384 csp package loading support 2016-02-01 16:10:09 +02:00
guybedford
2863a7987c csp build global support 2015-12-10 17:14:05 +02:00
guybedford
03b3b9bd4d ie bug fix 2015-10-08 17:50:00 +02:00
guybedford
4aa9bb6946 fixes IE global fallback bug 2015-09-24 14:26:36 +02:00
guybedford
b98110e0f1 comment note 2015-09-23 11:55:27 +02:00
guybedford
0a5dda604e ensure bundles can be pre-populated out of loading cycles 2015-09-23 11:50:49 +02:00
guybedford
d4adfde0d6 IE fixes (#799) 2015-09-22 14:29:07 +02:00
guybedford
37c051c1d7 integrity, nonce test tweaks 2015-08-18 11:34:41 +02:00
Matthew Justin Bauer
18e6945646 Enable setting properties on script element.
The script loader will use load metadata to set script properties. This allows what is in the script tag to be set in meta.

There are two primary use cases: CSP nonce and subresource integrity.

Users of SystemJS wanting to take advantage of CSP can set a "nonce" value in their CSP config. Setting the meta attribute "nonce" for plugins and formats that cannot use CSP allows safely bypassing CSP. Note that this will only work in places where "document" is available. See the test-csp-inline.html file for a full example.

In addition, subresource checking mentions in #639 is also implemented. In the same way setting "integrity" in the meta should make this possible. See test-csp.html for a full example.

Post Rebase Notes:
* Corrected indention.
* Fix load.metadata issue.
* Fixed test-csp-inline.html stuff.
* White-list correct properties.
* Reword error messages.
2015-08-15 16:03:17 -05:00
guybedford
e5644a7d14 ensure System refers to the current loader 2015-05-21 17:27:20 +02:00
guybedford
c21801c47d Traceur clobbering protection fix 2015-05-21 13:34:51 +02:00
guybedford
a563bfda65 support script loading for globals in subset 2015-05-12 13:54:05 +02:00
guybedford
f924595ead minor tweaks 2015-05-12 13:52:55 +02:00
guybedford
3ee7cc5d43 always use script CSP support for AMD and System.register loading, CSP and production loader convergence 2015-05-12 13:52:53 +02:00
guybedford
c2f8fb64ce update to esml 0.17 build 2015-05-12 13:52:52 +02:00