You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
I hope this is not too broad of a question, but I'm having issues accepting an ajax post request in the laravel-shopify app.
I've excluded this particular path from the CSRF verification on VerifyCsrfToken class, and the request does come in. However, if I pass any data to the request I get a 401 Unauthorized error, with the following on the request response preview
If I don't pass any data on the request, it does go through.
For a little more context, this request is coming from a react application that is running proxy app requests. I have several working just fine, it was just now that I needed a post request that I ran into problems.
Any help much appreciated. Thank you!
The text was updated successfully, but these errors were encountered:
Someone else can chime in if I'm wrong, but I believe you can't do POST requests? I believe its strictly designed to GET only. As you request the URL, Shopify does a GET request to your app + path, then returns the result.
Hi,
I hope this is not too broad of a question, but I'm having issues accepting an ajax post request in the laravel-shopify app.
I've excluded this particular path from the CSRF verification on VerifyCsrfToken class, and the request does come in. However, if I pass any data to the request I get a 401 Unauthorized error, with the following on the request response preview
If I don't pass any data on the request, it does go through.
For a little more context, this request is coming from a react application that is running proxy app requests. I have several working just fine, it was just now that I needed a post request that I ran into problems.
Any help much appreciated. Thank you!
The text was updated successfully, but these errors were encountered: