angular2 routing - How to Protect Angular CLI Assets with canActivate -
right can access assets
doing http://localhost:4200/assets/filename.pdf
when user not logged in. how can protect assets
using canactivate
?
something ideal: { path: 'assets/*', canactivate: [loginservice] },
thanks.
no. want use use server-side authentication , authorization protect file access.
always assume can access assets in angular application.
Comments
Post a Comment