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
Post a Comment