【发布时间】:2018-11-12 18:18:12
【问题描述】:
我有一个基本的 html,其中包含一个表单。此表单提交由 RESTful 后端 api 服务(用 spring boot 编写)处理。由于商业原因,html 页面不受保护 - 任何类型的身份验证/登录机制都不能应用于 HTML。如何确保只允许 html 访问后端 API,而不允许访问其他来源? html 和后端 api 都在同一个域下。示例 - example.com/index.html; example.com/getStudentList
【问题讨论】:
标签: rest security spring-boot spring-security restful-authentication