Sunday, 25 November 2018

The required anti-forgery form field "RequestVerificationToken" is not present Solution


應用程式中發生伺服器錯誤。 

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

解決方式:

在View 送出的Form頁面using處下方,要加入下面字眼

@Html.AntiForgeryToken()

(Solutions)
You have [ValidateAntiForgeryToken] attribute before your action. 
You should add @Html.AntiForgeryToken() in your form.

Example:
@using(Html.BeginForm())
{
     @Html.AntiForgeryToken()
     <input name="..." type="text" /> 
}

No comments:

Post a Comment

群益台灣精選高息ETF基金(00919)」指數編製原則調整說明

本公司經理之「群益台灣精選高息(證券代號:00919)」(以下稱本基金)所追蹤之標的指數「臺灣指數公司特選臺灣上市上櫃精選高息指數」部分指數編製規則異動,業經金融監督管理委員會以中華民國(以下同)114年4月23日金管證投字第1140339355號函備查在案,標的指數成分股檔數由...