我有带有express后端和一些端点的node.js,都可以用curl或postman进行测试,但在我的客户端使用angular的http.post请求上,我得到了正确的响应,但没有保存cookie。我已经尝试更改我的本地主机dns,经过一些尝试之后,我最终使用了127.0.0.1:4200客户端和127.0.0.1:3000后端。/*in my function i set cookie with these lines*/
res.cookie('userData
我在springboot中创建了rest,在发送有效的凭据时返回jwt访问令牌,并在httpOnly cookie中保存刷新令牌,当我向在postman中使用cookie的API发送GET请求时,它工作得很好,但是当我尝试获取rest时,返回错误表明没有cookie。如何在本地主机上工作(springboot正在处理localhost:8080并响应localhost:3000)。当前如何创建cookie:
public static Cook