concretesolutions / ng-security

A security module for AngularJS.
MIT License
31 stars 4 forks source link

Providing paths the security roles apply to #14

Closed danallen88 closed 7 years ago

danallen88 commented 7 years ago

I'm trying to reuse the security permissions from one page on another page (wouldn't have this issue if we weren't running two angular apps and were a true single page, but alas) but because of the way the cookie is scoped to the path, I'm unable to use the permissions that have already been set on one page on the other page if the root of the path is different. It would be great if you could provide a list of paths in the configuration to allow reuse, though not being a big security nut I'm not sure what security issues this presents.

danallen88 commented 7 years ago

Closing as I realized the browser prevents this kind of behavior by default, for good security reasons.