禁用返回键
deleteall(){
history.pushState(null, null, document.URL);
window.addEventListener('popstate', function () {
history.pushState(null, null, document.URL);
});
},
跨域在servlet中的设置
public void cross(HttpServletRequest request, HttpServletResponse response) {
response.setHeader("Access-Control-Allow-Origin",request.getHeader("origin"));
response.setHeader("Access-Control-Allow-Credentials", "true");
}