canvas-lms/packages/js-utils
Ryan Shaw 34863b79ee Better 40x/50x error handling for all `fetch` requests
Closes: COREFE-213

When fixing CORE-3260 I noticed that there might possibly be other areas
where we might possibly run into similar errors with other fetch 
requests

And it also made me realize *why* fetch requests weren’t working for
older versions of edge (it was because the older version of the `fetch`
spec said not to include credentials, aka cookies, by default. So older
Edge and Firefox would have the same problem), so we can revert what 
we did in g/204432. If we always set “credentials: “same-origin”” 
explicity like we do in this commit, it should fix it.

Test plan
* yarn jest \
app/jsx/dashboard_card/__tests__/CourseActivitySummaryStore.test.js
Should pass

Change-Id: I7c1b33cd24cec15ad86c0e9c68e3df627ed85c7a
Reviewed-on: https://gerrit.instructure.com/205690
Tested-by: Jenkins
Reviewed-by: Ed Schiebel <eschiebel@instructure.com>
QA-Review: Ryan Shaw <ryan@instructure.com>
Product-Review: Ryan Shaw <ryan@instructure.com>
2019-08-20 18:36:02 +00:00
..
src Better 40x/50x error handling for all `fetch` requests 2019-08-20 18:36:02 +00:00
.gitignore allow packages to commit lib files 2019-07-17 15:27:09 +00:00
package.json Fetch things sooner on the dashboard 2019-05-17 15:55:59 +00:00