gnikyt / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
1.24k stars 374 forks source link

CSRF token mismatch error in POST call using Ajax #1216

Closed yogeshausp closed 2 years ago

yogeshausp commented 2 years ago

Response give error 419 on post method call from ajax when I have uploaded csv file using ajax

Expected Behavior

It will upload the CSV.

Current Behavior

Error 419 csrf mismatch

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Failure Logs

Please include any relevant log snippets or files here.

Kyon147 commented 2 years ago

The CSRF is not used anymore because of the session token that Appbridge uses to validate all request to Shopify. You can read here if you are missing the global flag https://github.com/osiset/laravel-shopify/wiki/Installation#csrf