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

Added X-CSRF-Token #1151

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
2 participants
@deanpcmad

deanpcmad commented Mar 2, 2014

I'm adding FineUploader to my project and have been scratching my head trying to find out how to send the CSRF token with the upload so I don't get "Can't verify CSRF token authenticity" errors.

After playing around with the code I found that adding it in the handler.xhr.js file works a treat!

@rnicholus

This comment has been minimized.

Member

rnicholus commented Mar 2, 2014

Is there any reason you can't use the request.customHeaders option?

@deanpcmad

This comment has been minimized.

deanpcmad commented Mar 2, 2014

Ah, didn't realise there was a custom headers option, will try it.

@rnicholus

This comment has been minimized.

Member

rnicholus commented Mar 2, 2014

I'll close this then. Also, all pull requests need to be against the develop branch.

@rnicholus rnicholus closed this Mar 2, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment