简体   繁体   中英

Azure Node.js Linux App Service Microsoft.AspNetCore.Server.Kestrel.Core.BadHttpRequestException: Request body too large

We are using Azure Node.js Linux App service, we are running into below error when we try uploading large files ~30MB

在此处输入图片说明

Do we have any setting to change the request body size?

Thanks for asking question! The CORS middleware container currently has a limitation on the size of the request you can send and disabling the CORS setting may fix the issue.

Checkout KestrelServerLimits.MaxRequestBodySize Property for more details.

You may also want to look this article: https://docs.microsoft.com/en-us/azure/app-service/app-service-web-nodejs-best-practices-and-troubleshoot-guide

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM