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

feat(csrf) enable csrf token in other way than ruby's one #134

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cpuy
Copy link

@cpuy cpuy commented Oct 4, 2016

Hi,

Here is a PR to allow csrf in an other way than rail's one. In angular > 1.2 we can configure csrf cookie name and cookie header to let angular read the cookie and add token in headers. The idea here is to act as similar way instead of using meta tags

Add two options

  • upload-options-csrf-param name of the hidden parameter added to the form
  • upload-options-enable-csrf enable csrf in a simpler manner than ruby's one by getting token in cookie

Please let me know your opinion on this new feature.
Thx

Colin

add two otpions
- upload-options-csrf-param  name of the hidden parameter added to the form
- upload-options-enable-csrf  enable csrf in a simpler manner than ruby's one by getting token in cookie
@cpuy cpuy force-pushed the feat/enable-csrf branch from ef36233 to d9d95d8 Compare October 4, 2016 09:02
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

Successfully merging this pull request may close these issues.

1 participant