String at = req.getParameter("accesstoken");
NutMap re = new NutMap().setv("ok", 0);
log.debug(Json.toJson(req.getHeaderNames()));
if (req.getHeader("Authorization") != null) {
log.debug("api version = " + req.getHeader("Api-Version"));
String loginname = req.getHeader("Api-Loginname");
String nonce = req.getHeader("Api-Nonce");
String key = req.getHeader("Api-Key");
String time = req.getHeader("Api-Time");
html5这么设置header后
Vue.http.interceptors.push((request, next) => {
request.headers.set('Api-Key', store.state.ApiLogin.ApiKey)
request.headers.set('Api-Loginname', store.state.ApiLogin.ApiLoginname)
request.headers.set('Api-Version', 'store.state.ApiLogin.ApiVersion')
request.headers.set('Api-Nonce', store.state.ApiLogin.ApiNonce)
request.headers.set('Api-Time', store.state.ApiLogin.ApiTime)
console.log(request.headers);
next()
})
服务器没有获取到值?