box / viewer.js

A viewer for documents converted with the Box View API
Apache License 2.0
336 stars 99 forks source link

ajax with cookies #200

Open vdclouis opened 9 years ago

vdclouis commented 9 years ago

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?

klaascuvelier commented 9 years ago

Any update/info here, @lakenen?