jzmwebdevelopment
3 years ago

TokenMismatchException in VerifyCsrfToken.php

Posted 3 years ago by jzmwebdevelopment

I am using x-editable as my "edit in place" however I am using bootstrap tabs on the same page and each tab has the same CSRF. Do they need to be different?

Blade:

  <input name="__RequestVerificationToken" type="hidden" value="{{ csrf_token() }}" />

JS:

$.fn.editable.defaults.params = function (params) {
    params._token = $("#_token").data("token");
    return params;

Please sign in or create an account to participate in this conversation.