Skip to content
This repository has been archived by the owner on Jan 20, 2023. It is now read-only.

Document use of 'fetch' for network calls #24

Open
patrickmcelwee opened this issue Jun 3, 2019 · 0 comments
Open

Document use of 'fetch' for network calls #24

patrickmcelwee opened this issue Jun 3, 2019 · 0 comments

Comments

@patrickmcelwee
Copy link

We use the fetch API for network calls in Grove. This should be documented, so that developers know to use fetch for any network calls that they write.

This is particularly important in the React stack, because the application overrides the global fetch() in order to detect 401s and log out the current user.

When using fetch, it is important to include the following option:

{credentials: 'same-origin'}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant