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

Pass csrf token value #11

Merged
merged 2 commits into from
Oct 25, 2020
Merged

Pass csrf token value #11

merged 2 commits into from
Oct 25, 2020

Conversation

ishanvyas22
Copy link
Owner

@ishanvyas22 ishanvyas22 commented Oct 25, 2020

Application now using this plugin will now not have to set CSRF token value manually instead this plugin now sets _csrfToken field value by default so it can be used by front-end to pass this value while making form request to prevent CSRF.

In front-end, it can be accessed via this.$page._csrfToken key.

@ishanvyas22 ishanvyas22 added the enhancement New feature or request label Oct 25, 2020
@ishanvyas22 ishanvyas22 merged commit 80cf519 into master Oct 25, 2020
@ishanvyas22 ishanvyas22 deleted the pass-csrf-token branch November 3, 2020 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant