MVC Anti-forgery token missing RRS feed

  • Question

  • I have been doing a few projects in MVC, and overall I love it, but today I stumbled upon something I have not seen before.

    Whenever I post/save  I get this error 

    The required anti-forgery form field "__RequestVerificationToken" is not present.

    I run it on my local dev environment with absolutely no issues. It saves as expected and generates all tokens as required.

    I have @Html.AntiForgeryToken() in my views.

    I also have the required attributes.


    When viewing the source of the page generated it creates my token as expected.

    <input name="__RequestVerificationToken" type="hidden" value="1P2ZU8aqLv865wxDInVSPq_exqgls8DKhNjykVmmyqalsZOiZ1rfgDzhhtqLhiLpbDMNEjKU4TQ05pHRnjsqSSt8xs4kbyaUFsYU7Fgq8_Y1" />

    Though after the post it just does not find it.

    Any idea what I am missing?

    Tuesday, August 1, 2017 8:57 AM

All replies