-
-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Verfiy Scope middleware Shopify error #342
Comments
I've not seen this issue before with the scopes but I am assuming you are on Blade templates? |
No, I am using Polaris. There are errors once I add middleware.
I tried a variant when I added logic from the middleware to mine:
And this is part from Axios:
|
Why are you using |
Otherwise, I got the following problem: I was redirected to the Shopify page apps page with an error message: "This app can’t load due to an issue with browser cookies. Try enabling cookies in your browser, switching to another browser, or contacting the developer to get support." |
@megabait1212 is your template engine set to I've not seen this issue before and I am also using Polaris etc on one of my apps and verify scopes seems to work fine. The app should not need to use cookies being auth'd through JWT, so it is strange. |
Yes, SHOPIFY_FRONTEND_ENGINE=REACT. |
Without further knowledge of your code it is going to be hard to diagnose as I can't replicate the issue locally. |
Could you check if I upload the project to GitHub on weekends? |
Hi Kyon147, I uploaded the project https://github.com/megabait1212/laravel-shopify I really appreciate any help you can provide. |
Hey @megabait1212 I'll take a look at this next week, thanks for setting up the github project for me to use. |
Hello,
I don't know if it is a bug or not, but it looks suspicious. I added verify.scopes middleware, and after that, I was redirected to the Shopify page apps page with an error message: "This app can’t load due to an issue with browser cookies. Try enabling cookies in your browser, switching to another browser, or contacting the developer to get support.". I tried to clear cookies, but it doesn't help. If I remove the middleware, everything will be fine. I rewrote the middleware because I have a redirect with JS and the same problem.
How can I solve the problem and update the app's permissions?
The text was updated successfully, but these errors were encountered: