angularjs - Token authentication and regular resources -


i have django backend angular frontend. backend exposes rest api, , frontend uses token authentication.

i have problem when serving ordinary resources, such files created in server , supposed downloaded client. when browser accesses these resources (through <img> tag or <a href=...>), token not added http headers , backend doesn't authenticate user.

i can work both tokens , cookies, hope there's easier , more straightforward.


Comments

Popular posts from this blog

iOS: Performance of reloading UIImage(name:...) -

How to prevent logback from emitting repeated "Empty watch file list. Disabling" messages -

c# SetCompatibleTextRenderingDefault must be called before the first -