CORS error when uploading larger files

后端 未结 1 1674
孤城傲影
孤城傲影 2021-01-06 04:35

I am using an angular web project with c# web api with CORS enabled.

All of my CORS work correctly on all calls except when I make a file upload to a async Task. Her

相关标签:
1条回答
  • 2021-01-06 05:10

    Make sure your Max allowed content Length in your web.config is set high enough otherwise you'll get an error. Check your IIS logs to see if that's the issue.

          <requestFiltering>
        <requestLimits maxAllowedContentLength="4294967295" />
        <!-- bytes -->
      </requestFiltering>
    
    0 讨论(0)
提交回复
热议问题