如何制作 React App windows 身份验证

How to make a React App windows Authentication

Web API 已在 .Net 中使用 Windows 身份验证创建。当我在 React APP 中调用 API 时得到 401 Unauthorized。 Web API 在具有 windows 身份验证的浏览器中工作正常。

axios.get('http://.../.../user/Data')
    .then(function (response) {
      console.log(response);
    })
    .catch(function (error) {
      console.log(error);
    });```

对于 fetch 我设置了 credentials: include 选项。另外,我认为 Access-Control-Allow-Credentials header 需要设置在 back-end 上。

我是一名 front-end 开发人员,所以我不确定为 Windows 身份验证配置 back-end 的所有内容。