No owin.Environment with Put requests

半世苍凉 提交于 2021-01-29 06:26:50

问题


In my current project I'm using AspNet.Mvc 5.2.7 and Owin 4.1.0

My issue is that whenever I try to access to the Owin Context from a put request (i.e.:HttpContextBase.GetOwinContext()) I get the error message:

No owin.Environment item was found in the context.

All's good with [HttpPost] and [HttpGet] but not with Put so looks like Identity has been introduced properly.

As soon as I changed the very same request to post it started working as well. Went through a lot of SO posts but didn't found anything related which makes me wonder if it's only me who try to do this? Or am I missed something in Identity docs which says that owin context wont be applied with put requests?

来源:https://stackoverflow.com/questions/60264523/no-owin-environment-with-put-requests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!