Safari无法维持与Spring服务器的会话

时间:2019-06-19 00:55:47

标签: spring safari

我遇到了无法在Safari中维护会话的Web应用程序的麻烦。与所有其他浏览器都可以正常工作。

该应用托管在app.example.com上,而api位于api.example.com

服务器正在运行spring。

我登录,浏览到另一个页面或提出另一个请求,并且服务器似乎未维护会话。

我将fetchwhatwg-fetch用作没有获取内容的浏览器的填充。

所有请求都有credentials: 'include'

  const request =  fetch(`${API_URL}/session/${id}/create`, {
    method: 'get',
    credentials: 'include',
  }).then(res => res.json())

这大约在2个月前开始。

0 个答案:

没有答案
相关问题