aleksei0807 / react-images-uploader

React.js component for uploading images to the server
MIT License
177 stars 67 forks source link

Set Header, cors to request #28

Closed dungvan closed 6 years ago

dungvan commented 6 years ago

I need to set the header with Authorization and Cors in the request, send it to my server and get response, i think this project is good, but some thing like this if it missing, it need to update in next version. Or if has another way to resolve this problem please support me, thank you!

OakAndAspen commented 5 years ago

I have the same problem, the component can't handle the Authorization header and never sends the POST request, only the OPTIONS request. Sorry but I can't use this tool without authentication.

JimishF commented 5 years ago

Any solutions?

JimishF commented 5 years ago

'https://github.com/aleksei0807/react-images-uploader/blob/fa9b8afa07a73aec40078581a42b1029f762f61e/lib/index.js#L348

credentials:'include' This has to be configurable.