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

Popular posts from this blog

Ansible warning on jinja2 braces on when -

Parsing a protocol message from Go by Java -

html - How to custom Bootstrap grid height? -