Shopify / shopify-app-template-php

282 stars 92 forks source link

POST request with csrf-token #320

Open galtechstaffs opened 2 years ago

galtechstaffs commented 2 years ago

How to make a post request with csrf-token

======================================= Sending a post request while the action takes place in react front-end and receiving the laravel backend. With csrf-token and shop-auth.

cjohansson commented 2 years ago

CSRF seems obsolete when JWT is already verified for each single request so I solved this by just commenting line 38

            // \App\Http\Middleware\VerifyCsrfToken::class,

in app/Http/Kernel.php

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 60 days with no activity. It will be closed if no further action occurs in 14 days.