I'm having trouble getting ngAnimate to work with content security policy. 
It looks like ngAnimate is trying to add inline styles. Offending code is 
[1]:

node.setAttribute('style', oldStyle + ' ' + style);

This causes the following CSP error for me:
Refused to apply inline style because it violates the following Content 
Security Policy directive: "style-src 'self' fonts.googleapis.com".


I'm using the ngCsp directive and I already included the angular-csp CSS. I 
get no other CSP errors except the one from ngAnimate. Anyone know anything 
about this? I can't find any documentation on ngAnimate and CSP, besides 
the .ng-animate-block-transitions CSS snippet, which I'm already using, so 
I assumed it would just work.

[1] 
https://github.com/angular/angular.js/blob/master/src/ngAnimate/animate.js#L1433

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to