Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    Seller register form "CSRF Token Mismatch"

    Bug Report
    2
    2
    25
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G
      Gwenaelle last edited by

      Hello Webkul,

      I have just installed Bagisto 2.4.6 and Marketplace extension 2.4.4
      But I faced an error while registering a new seller with the url "seller/register", ending in a "419" error page, debug bar says "CSRF Token Mismatch".
      To solve it I added a "@csrf" tag in the view form.
      Are you aware of it ? Will it happen on other Marketplace forms ?
      csrf token.PNG

      Aside from that it can be of help to add in documentation how to "approve" a seller, it has been difficult to find. I' have find how with a screenshot from another ticket.

      Best Regards,
      Gwenaelle

      1 Reply Last reply Reply Quote 0
      • admin
        admin last edited by

        Hello Gwenaelle,

        Greetings!

        Thank you for reaching out and for sharing your findings.

        The @csrf token is already included in our shop form component located at:

        packages/Webkul/Shop/src/Resources/views/components/form/index.blade.php

        Therefore, there is no need to add @csrf manually on pages that use the <x-shop::form> component.

        Could you please clear your browser cache and try again? If you still encounter the same 419 (CSRF Token Mismatch) error, kindly let us know. We'll investigate it further.

        Thank you as well for your suggestion regarding the seller approval documentation. We appreciate your feedback and will consider improving the documentation to make this process easier to find.

        Regards,
        Kartikey Dubey
        Team Bagisto

        1 Reply Last reply Reply Quote 0
        • First post
          Last post