2017-06-28 2 views
1

私はコードを編集しません。 昨日から突然送信できません。私はhtmlページでコードを使用amp-form error 'submit'の信頼(2)不十分(min:3)。

<form id="myform" class="p3 hide-inputs" method="post" action-xhr="/vote" target="_blank"> 
<label class="ampstart-btn vote"> 
<input type="radio" name="vote" value="up" on="change:myform.submit">GOOD 1</label> 
<label class="ampstart-btn vote"> 
<input type="radio" name="vote" value="down" on="change:myform.submit">BAD 0</label> 
</form> 

> error.js:151 Trust for 'submit' (2) insufficient (min: 3).​​​ 
> Ud @ error.js:151 f.error @ log.js:214 
> Hg.satisfiesTrust @ action-impl.js:164 Ug @ action-impl.js:502 
> f.trigger @ action-impl.js:435 (anonymous) @ action-impl.js:259 

答えて

0

を仕様に既存のアクションのための アンペアのhtml更新信頼レベル。 action-xhr="//www.yoursite.com/vote"

action-xhr="/vote"を変更しようと、そう

"action-xhr" "must start with "https://" or "//" or be relative and served from either https or from localhost. Invalid value:" "/vote" 

:一つのエラーは以下のとおりです。

関連する問題