ajax with cookies
- Dominant language
- JavaScript
- Stars
- 333
- Forks
- 98
- PR merge metrics
- No merged PRs in 30d
Description
Right now we are using `viewer.js` without Data Providers. If I understand correctly `viewer.js` does the XMLHttpRequests for you in this case.
The problem is we need to somehow send a cookie with the XMLHttpRequest.
I thought, oh nice, they have this thing called Data Providers with a `.get()` method, but it doesn't seem like you can specify `withCredentials`.
TL;DR
Is there a way to set `withCredentials` to `true`?
Contributor guide
Research direction
Start in viewer.js and trace how XMLHttpRequests are made when Data Providers are not used, then compare that path with the Data Providers .get() method. Determine whether withCredentials can be configured, and confirm that the completed behavior allows the required cookie to accompany the request.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authentication, frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100