【发布时间】:2016-10-04 05:40:34
【问题描述】:
我正在阅读本教程:
https://spring.io/guides/tutorials/spring-security-and-angular-js/
作者证明这行不通:
$ curl localhost:8080/resource
{"timestamp":1420442772928,"status":401,"error":"Unauthorized","message":"Full authentication is required to access this resource","path":"/resource"}
在以下部分中,作者生成了这个 sn-p:
angular.module('hello', [])
.controller('home', function($http) {
var self = this;
$http.get('/resource/').then(function(response) {
self.greeting = response.data;
})
});
并表示能够获取数据。我的问题是那个sn-p是怎么通过安全检查的?
TIA, 奥莱
【问题讨论】:
标签: angularjs spring-security spring-boot