应该是res.setHeader("Access-Control-Allow-Origin", "*"); res.setHeader("Access-Control-Allow-Methods", "*");
add不行啊
add不行啊
2019-03-08
最新回答 / 精慕门9528935
nginx里面,$COOKIE_服务器cookie的名字 ,把“服务器cookie”换成你的cookie就可以取到。java服务器端添加: Cookie cookie = new Cookie("testKey", "testVal"); cookie.setDomain(request.getRemoteAddr()); cookie.setPath("/"); cookie.setMaxAge(2 * 60 * 60); cookie.setHttpOnly(true); ...
2019-02-26