Download files in Javascript with OAuth2

后端 未结 2 553
无人共我
无人共我 2020-12-11 05:40

I\'m developing an single-page with Javascript+AngularJS on the client side and Spring MVC + Spring Security OAuth2 on the server side. Spring MVC acts as a REST controller

2条回答
  •  春和景丽
    2020-12-11 05:58

    I would go with cookies if I were you - it takes all the hassle out of it. I wrote some blogs recently to show how easy it is (e.g. https://spring.io/blog/2015/01/20/the-resource-server-angular-js-and-spring-security-part-iii). People get too hung up on "stateless" applications.

提交回复
热议问题