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

sql - can we replace full join with union of left and right join? why not? -

javascript - Parallax scrolling and fixed footer code causing width issues -

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