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

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -