dotnet / dotnet/aspnetcore

Consider not registering JQueryFormValueProviderFactory by default

Open
#37,857 3 comments 1 reaction 0 assignees View on GitHub
area-mvc feature-mvc-application-model investigate
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

MVC registers a JQueryFormValueProviderFactory to support posts made using jQuery's serialization format - https://github.com/dotnet/aspnetcore/blob/main/src/Mvc/Mvc.Core/src/Infrastructure/MvcCoreMvcOptionsSetup.cs#L102 that is on by default. We should consider making a breaking change here and not register it by default.

Users who rely on jQuery should be able to trivially re-add it. For all other users that do not use this, this should result in a small improvement to form post processing.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.