You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
However, if you're using an older version of Angular between v1.0.1 and v1.1.0, you'll need tell
Angular to run in a "content security mode". This is done by including the ngCsp directive alongside
ngApp:
I've tried setting the ng-csp directive in my HTML to see if it would help and it does fix those errors (but most of my ng-ifs and ng-shows are still broken 👎). That being said, I'd rather avoid ng-csp if it is not necessary (since it's slower I'd rather only use it on my chrome packaged app).
Any tips? Is this a known bug?
Update: I also tested with Angular 1.3, same bug
Update: I just fixed the ng-if/ng-show problem by manually including angular-csp.css: <link rel="stylesheet" href="bower_components/angular/angular-csp.css" />.
Adding ng-csp directive now fixed the obvious bugs. That being said, I'm a bit worried that this will degrade performance on the hosted version of my app. Is my worry justified? Is there any easy way to conditionally enable ng-csp/angular-csp.css without having to maintain 2 different index.html files?