DevChatter / DevChatter/DevStreams

Add ValidateAntiForgeryToken Attribute on Post methods

Open
#46 0 comments 0 reactions 0 assignees View on GitHub
✨ enhancement
Dominant language
CSS
Stars
32
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Since we are posting the data through `axios` we have to manually add the `AntiForgeryToken` to the request as a cookie or as a header value to leverage the ASP.NET Core functionality.

Check out [this](https://damienbod.com/2017/05/09/anti-forgery-validation-with-asp-net-core-mvc-and-angular/) post, it solves a similar issue.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.