How do I secure this Spring Boot + Thymeleaf + Vue.js app?

I have this app:

图片[1]-How do I secure this Spring Boot + Thymeleaf + Vue.js app? - 拾光赋-拾光赋

Complete CRUD with Spring Boot, Vue.js, Axios

Bruno Drugowick ・ Feb 9 ’20 ・ 4 min read

#java #vue #axios #spring

And I’m wondering how do I properly secure it? The app has:

  • Server-rendered pages with Thymeleaf.
  • An API providing data for the pages.

What’s the proper way to secure and its underlying limitations considering this architecture?

Some questions that pop on my mind, to help you understand why I’m asking:

  • Can I go with Spring Security defaults (adding csrf token on my forms that POST/PUT with Vue.js)?
  • How do I integrate this with my DELETE via API, for example?
  • Should I disable csrf?
  • Does this architecture makes sense? What are the caveats?


Cover image from Christoph Scholz.

原文链接:How do I secure this Spring Boot + Thymeleaf + Vue.js app?

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容