-
-
Save lgolubyev/389484b8da14c55ce21a521471e36eec to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
builder.Services.AddAntiforgery(options => | |
{ | |
// Set Cookie properties using CookieBuilder properties. | |
options.FormFieldName = "AntiforgeryFieldname"; | |
options.HeaderName = "X-CSRF-TOKEN-HEADERNAME"; | |
options.SuppressXFrameOptionsHeader = false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment