如何在.net核心中增加ajax数据的限制

问题描述 投票:-3回答:1

在.net核心Web应用程序中,当ajax post数据较大时,ajax post会抛出404错误。有没有办法通过增加其限制来通过ajax发送更多数据。数据较少时,相同的ajax代码支持

enter image description here

    $.ajax({
        url: '/addnewrelease',
        dataType: 'json',
        type: "GET",
        timeout: validationMessages.timeoutCount,
        data: {
            'releaseName': releaseName.value,
            'productId': productId,
            'startDate': startDate.value,
            'releaseDate': endDate.value,
            'codeFreeze': codeFreeze.value,
            'duration': duration.value,
            'releaseType': type,
            'releaseVersion': version.value,
            'releaseTemplate': template,
            'phases': phases
        },
javascript jquery .net-core asp.net-ajax
1个回答
0
投票

更改

type: "GET"

type: "POST"
© www.soinside.com 2019 - 2024. All rights reserved.