Laravel 5,Forms,VerifyCsrfToken.php第46行中的TokenMismatchException

提交表单时,我不断收到“ VerifyCsrfToken.php第46行中的TokenMismatchException”错误。

这是以下形式之一:

{!! Form::model($product, array('url' => 'product/'.$product->id, 'class' => 'form', 'method' => 'PATCH')) !!}

<div class="form-group">
    {!! Form::textarea('note', $product->note,
        array('class'=>'form-control', 'id'=>'product-note', 'placeholder'=>Lang::get('customtranslation.form_placeholder_note'), 'rows'=>3)) !!}
    <br />
    <span class="btn btn-link" id="remove-note" role="button"><i class="fa fa-times"></i> {{ Lang::get('customtranslation.button_txt_reset_note') }}</span>
</div>

<div class="form-group">
    {!! Form::submit(Lang::get('customtranslation.button_txt_finish_edit_product'), array('class'=>'btn btn-success')) !!}
</div>

<div class="form-group">
    <!-- Custom tags -->
    {!! Form::label('additional-tags', Lang::get('customtranslation.form_edit_label_additional_tags')) !!}
    {!! Form::text('additional-tags','', array('id'=>'additional-tags', 'data-role'=>'tagsinput')) !!}
</div>

{!! Form::close() !!}

名称为“ _token”的输入元素将生成并按预期设置。

奇怪的是,这仅发生在Internet Explorer(IE11)中。Chrome和FF提交时没有任何问题。

还有其他人有这个问题和可能的解决方案吗?

克里斯

Internet Explorer拒绝带有下划线的域会话。这是一个已知的问题。

请参阅此处:Internet Explorer中包含下划线的网站的会话和Cookie问题

并且:http : //blogs.msdn.com/b/ieinternals/archive/2009/08/20/wininet-ie-cookie-internals-faq.aspx

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何在VerifyCsrfToken.php第46行中修复TokenMismatchException:使用Ajax和laravel 5.0?

VerifyCsrfToken.php第53行中的TokenMismatchException:在Laravel 5.1中

Laravel 5.1中VerifyCsrfToken.php第53行中的TokenMismatchException

laravel模式提交表单获取错误“ VerifyCsrfToken.php第68行中的TokenMismatchException:”

laravel 5.1中的“ VerifyCsrfToken.php 53行中的TokenMismatchException:”

VerifyCsrfToken.php 67行中的Laravel 5.2 TokenMismatchException

VerifyCsrfToken.php Laravel 5.2中的TokenMismatchException

VerifyCsrfToken.php 67行中的TokenMismatchException:将paytm与laravel 5.3集成时

使用Ajax在Laravel上的VerifyCsrfToken.php 67行中的TokenMismatchException

VerifyCsrfToken.php 67行中的Laravel 5.2 ajax上传进度栏和TokenMismatchException

VerifyCsrfToken中的TokenMismatchException-Laravel 5.1

VerifyCsrfToken.php 67行中的TokenMismatchException

Laravel TokenMismatchException VerifyCsrfToken.php:67查找路线

Laravel 5在RouteCollection.php第219行中的MethodNotAllowedHttpException:

RouteCollection.php第201行中的Laravel 5 MethodNotAllowedHttpException:

Laravel 5-RouteCollection.php第143行中的NotFoundHttpException

上线后,VerifyCsrfToken.php 67行中的TokenMismatchException

在Laravel 5中,如何为特定路由禁用VerifycsrfToken中间件?

Laravel 5:在VerifyCsrfToken外部验证令牌

PHP 5.6.9上的Laravel 5 TokenMismatchException

RouteCollection.php第161行中的NotFoundHttpException:在Laravel 5中

Laravel 5 TokenMismatchException仅在iFrame中

在FileViewFinder.php第137行中的Laravel 5 InvalidArgumentException:找不到视图[.admin]

Laravel5:RouteCollection.php第161行中的NotFoundHttpException

Laravel 5 TokenMismatchException登录

Laravel 5 TokenMismatchException

Controller.php第268行中的1/1 NotFoundHttpException:找不到控制器方法。在laravel 5中

通过edittable提交时,VerifyCsrfToken.php中的TokenMismatchException

PHP Laravel TokenMismatchException请求