angular.js/src
Igor Minar 2b87c814ab feat($parse): CSP compatibility
CSP (content security policy) forbids apps to use eval or
Function(string) generated functions (among other things). For us to be
compatible, we just need to implement the "getterFn" in $parse without
violating any of these restrictions.

We currently use Function(string) generated functions as a speed
optimization. With this change, it will be possible to opt into the CSP
compatible mode using the ngCsp directive. When this mode is on Angular
will evaluate all expressions up to 30% slower than in non-CSP mode, but
no security violations will be raised.

In order to use this feature put ngCsp directive on the root element of
the application. For example:

<!doctype html>
<html ng-app ng-csp>
  ...
  ...
</html>

Closes #893
2012-04-27 23:04:24 -07:00
..
auto fix($injector): properly infer dependencies from fn with no args 2012-03-29 11:21:04 -07:00
ng feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
ngCookies fix(docs): move $cookies and $cookieStore docs to module 2012-04-05 11:33:42 -07:00
ngLocale chore(module): move files around in preparation for more modules 2012-03-28 11:16:35 -07:00
ngMock feat($resource): support HTTP PATCH method 2012-04-20 12:32:33 -07:00
ngResource feat($resource): support HTTP PATCH method 2012-04-20 12:32:33 -07:00
ngSanitize chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a module 2012-04-11 15:50:47 -07:00
ngScenario chore(license): update to google 2012-04-20 11:29:34 -07:00
angular-bootstrap.js fix(bootstrap): rewritten to $script 2012-04-20 17:04:21 -07:00
Angular.js fix(document): accidental clobbering of document.getAttribute 2012-04-20 11:29:33 -07:00
angular.prefix chore(license): update to google 2012-04-20 11:29:34 -07:00
angular.suffix fix(init): use jQuery#ready for init if available 2012-03-23 15:41:37 -07:00
AngularPublic.js feat($parse): CSP compatibility 2012-04-27 23:04:24 -07:00
apis.js fix(ng:repeat): support repeating over array with null 2012-01-06 12:19:39 -08:00
jqLite.js fix(events): include ie8 in extra event property reset 2012-04-20 17:04:21 -07:00
loader.js fix(docs): change all directive references to use the normalized names 2012-04-09 09:52:27 -07:00
loader.prefix chore(license): update to google 2012-04-20 11:29:34 -07:00
loader.suffix feat(module): new module loader 2012-01-10 22:27:00 -08:00
module.prefix chore(license): update to google 2012-04-20 11:29:34 -07:00
module.suffix chore(ngSanitize): extract $sanitize, ngBindHtml, linkyFilter into a module 2012-04-11 15:50:47 -07:00
publishExternalApis.js chore(Rakefile): get ready for modules 2012-03-28 11:16:36 -07:00