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?
Right now we are using
viewer.js
without Data Providers. If I understand correctlyviewer.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 specifywithCredentials
.TL;DR Is there a way to set
withCredentials
totrue
?