ARRAffinitySameSite cookie 阻止了我的另一个 cookie
ARRAffinitySameSite cookies block my another cookies
我已经在 Azure App Service 上部署了我的应用程序,我知道 Azure 提供了 ARRAffinitySameSite cookie,但我还有另一个用于身份验证目的的 cookie,我们称之为 'AUTH_COOKIE'。
在本地,我通过 AUTH_COOKIE 并在请求 header 中看到它们(因为我没有任何其他 cookie),但在我发布的应用程序中,我有两个 cookie:AUTH_COOKIE 和 ARRAffinitySameSite,我的请求不想设置为 AUTH_COOKIE 而不是 ARRAffinitySameSite。
我该如何解决?
return axios.get(`someUrl`, { params: { someParam}, withCredentials: true, headers: { 'Cookie': document.cookie } });
ARRAffinitySameSite 是一个安全 cookie,我们无法通过 javascript 读取它。
详情请看下方post和图片
2. I need to get all the cookies from the browser
如果你想使用ARRAffinitySameSite
值,下面的代码是一个替代方案。
我已经在 Azure App Service 上部署了我的应用程序,我知道 Azure 提供了 ARRAffinitySameSite cookie,但我还有另一个用于身份验证目的的 cookie,我们称之为 'AUTH_COOKIE'。
在本地,我通过 AUTH_COOKIE 并在请求 header 中看到它们(因为我没有任何其他 cookie),但在我发布的应用程序中,我有两个 cookie:AUTH_COOKIE 和 ARRAffinitySameSite,我的请求不想设置为 AUTH_COOKIE 而不是 ARRAffinitySameSite。 我该如何解决?
return axios.get(`someUrl`, { params: { someParam}, withCredentials: true, headers: { 'Cookie': document.cookie } });
ARRAffinitySameSite 是一个安全 cookie,我们无法通过 javascript 读取它。
详情请看下方post和图片
2. I need to get all the cookies from the browser
如果你想使用ARRAffinitySameSite
值,下面的代码是一个替代方案。