Skip to content

ASP.NET Core 3.0 3.0.100-preview9-014004-1 controller 405 Method Not Allowed #14140

@vintzl

Description

@vintzl

While with ASP.NET Core 2.2 it works perfectly, with ASP.NET Core 3.0 Preview 9, with the same Controller, I get 405 Method Not Allowed:

    [HttpPost]
    public async Task<ActionResult<LocalizedString>> Add(ViewModel viewModel)

Why I have to add [HttpPost("{id}")] now to get it works?

Metadata

Metadata

Assignees

Labels

area-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesinvestigate

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions