how to integrate angularjs and java jaas based authentication?

后端 未结 1 1159
轮回少年
轮回少年 2021-01-19 05:06

I have a webapp which has angularJS on the frontend and Java on the backed. Angular communicates with the java backend via Restful webservices consuming and sending JSON acr

相关标签:
1条回答
  • 2021-01-19 05:34
    • index.html page should contain token inside html to avoid CSRF
    • token shouldn't be stored in a cookie storage
    • Each request should be signed with header param
    • Server should validate every request by passed header
    • If cookie usage is a must you should validate referer in order to prevent CSRF
    0 讨论(0)
提交回复
热议问题