Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add params to headers #51

Closed
mydearxym opened this issue Jan 12, 2016 · 5 comments
Closed

add params to headers #51

mydearxym opened this issue Jan 12, 2016 · 5 comments

Comments

@mydearxym
Copy link

amazing work!

my backend is based on JWT (json web token) , it's there a way to add 'Authorization' key in request header ?

@cgwyllie
Copy link

So the Dropzone.js config accepts headers as an option: http://www.dropzonejs.com/#config-headers

I guess the React-Dropzone-Component config prop would pass that through to the Dropzone.js underneath?

@felixrieseberg
Copy link
Owner

That should be exactly how it works - does it not work for y'all?

@mydearxym
Copy link
Author

👍 thx for reply @cgwyllie @felixrieseberg

@ruoguluo
Copy link

Actually I need to put headers in disConfig

@giancarlobianchi12
Copy link

djsConfig={{ headers: { Authorization: "Bearer " + localStorage.getItem("token"), }, }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants