philipphecht / react-native-doc-viewer

React Native Doc Viewer (Supports file formats: xls,ppt,doc,xlsx,pptx,csv,docx,png,jpg,pdf,xml,binary ...)
MIT License
94 stars 116 forks source link

No cookie passed when call openDoc on ios #121

Closed loriling closed 6 years ago

loriling commented 6 years ago

In my app, i use fetch api to call http request from app to server. Every fetch request will auto take the cookie: JSESSIONID to server, but when i use openDoc method, i find out that no cookie will be passed. That will cause a new JSESSIONID responsed from server, and it will take my login status be invaild. So i think if there will be a headers parameter to be added to the openDoc method. Thx~

loriling commented 6 years ago

Sorry, it's my fault. i just use the different url, so the local cookies do not be passed indeed. When i change the urls to the same domain, then no errors..