Created
February 24, 2022 16:57
-
-
Save gerhart92/d5e102b953d59655961719a2db158752 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
var formData = $('input[name="text"]').val(); | |
var token = $('input[name="__RequestVerificationToken"]').val(); | |
var headersData = {}; | |
headersData['__RequestVerificationToken'] = token; | |
$.ajax({ | |
url: url, | |
method: 'POST', | |
data: formData, | |
dataType: 'json', | |
contentType: 'application/json', | |
contentType: "application/json; charset=UTF-8", | |
headers: headersData, | |
success: function(result) { | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment