I recently switched from using jQuery to using isomorphic fetching using Redux. When working in IE, he manages to get a fine. However, when launched in Chrome, I get below.
Failed to load resource: the server responded with a status of 401 (Unauthorized)
It might be worth noting that Windows authentication is included in the web api.
Here is the code that performs the selection:
export const fetchSearchResults = (name) => { return (dispatch) => { dispatch(requestSearchResults(name)) return fetch(API URI HERE) .then(response => response.json()) .then(json => { console.log('Fetch: ' + json.message.features.length) dispatch(receiveSearchResults(json)) }) } }
javascript google-chrome fetch redux unauthorized
Jacob mason
source share