Posting text/plain as a complex object in WebAPI with CORS

后端 未结 2 807
生来不讨喜
生来不讨喜 2021-01-12 08:22

So I wish to POST (or PUT) a complex object to the server from a AJAX post using CORS. Unfortunately IE8 only supports sending text/plain when using CORS and not appli

2条回答
  •  花落未央
    2021-01-12 08:55

    ugly, but you could try modifying the content-type header from text/plain to application/json in a message handler so that parameter binding happens properly with json formatter.

提交回复
热议问题