react-upload-gallery icon indicating copy to clipboard operation
react-upload-gallery copied to clipboard

Cookies are not send with the request

Open mariosarbinov opened this issue 2 years ago • 4 comments

Cannot send cookies header because XMLHttpRequest doesn't send the cookies by default. So it will be great if you set xhr.withCredentials = true; or extract property that will set it.

mariosarbinov avatar May 30 '22 13:05 mariosarbinov

For a quick solution you can use the customRequest props.

m-inan avatar Jun 01 '22 18:06 m-inan

Yes, I saw that option but it's a bit overkill so that's why I am wondering do you plan to handle this use case in the library soon?

mariosarbinov avatar Jun 03 '22 08:06 mariosarbinov

You can use it as a prop in version 0.4.1. I've been thinking about rewriting the project for a long time, so I'm postponing such updates.

m-inan avatar Jun 03 '22 14:06 m-inan

Thank you very much for the update. It works perfect! You saved my day! I hope you will put some notification in this project if you rewrite it :) Good luck!

mariosarbinov avatar Jun 06 '22 10:06 mariosarbinov