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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -