Comments (6)
I assume you are getting an app rejection?
I've seen this happen with Blade because of the redirect that happens after OAUTH to the authenticate/token route. Shopify only want users to be directed to the app homepage but blade needs that route in between to get the JWT token.
There's no current solution that I know of apart from making your app run like an SPA using Livewire or similar.
Edit: I do see on a test version that the headers are not being set in the latest version. It looks like the middleware is not firing although it is being registered.
from laravel-shopify.
from laravel-shopify.
I've created a new PR which seems to fix the issue. If the tests pass, I will release a new patch later on.
from laravel-shopify.
@mohd-baquir-qureshi, if you want to fix this before the patch, you can add this line of code to your kernel.php under the 'web' middleware group:
\Osiset\ShopifyApp\Http\Middleware\IframeProtection::class
Example:
File: app/Http/Kernel.php
'web' => [
\App\Http\Middleware\EncryptCookies::class,
\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class,
\Illuminate\Session\Middleware\StartSession::class,
............
\Osiset\ShopifyApp\Http\Middleware\IframeProtection::class, //<----- Add this at the end
],
from laravel-shopify.
@mohd-baquir-qureshi the PR is out, and you can update the package or you cant use my solution above. If the issue is resolved then close this bug..
from laravel-shopify.
This should be fixed now in 17.4.3
so closing but re-open if it still happens after upgrading.
from laravel-shopify.
Related Issues (20)
- change to shopify frontend engine react HOT 1
- install app button gets disabled using this package HOT 2
- I need help regarding the billing voucher code
- Kyon Shopify Laravel "cURL error 28: Operation timed out after 10043 milliseconds with 0 bytes received (see https:\/\/curl.haxx.se\/libcurl\/c\/libcurl-errors.html) for https:\/\/*******.com\/admin\/api\/2024-01\/products.json" HOT 3
- Urgent : Is it possible to pay in euros? HOT 3
- Class "Osiset\BasicShopifyAPI\Store\Memory" not found HOT 2
- Usage Charges Redirecting to Blank Page HOT 4
- Unable to set freemium flag on app uninstallation. HOT 2
- Problem reinstalling, but no error logs HOT 39
- Form Redirect Issue HOT 1
- Not Supported in Laravel 11 HOT 1
- Usage Charges Redirecting to Blank Page HOT 1
- Installing on October or Winter CMS HOT 1
- Missing csp in scripts and styles tags HOT 1
- it requires api_key but now shopify uses oauth which is required client_id and client_secret so there us no more api_key. So how to get the access_token now? HOT 1
- issue 'Unable to verify signature.' where the HMAC signature sent by Shopify during authentication suddenly does not match HOT 2
- Show blank page after app install in my store HOT 3
- Not able to create webhooks HOT 7
- AfterAuthenticate Job and Script Tags Not Triggered Upon Reinstallation of App
- Deprecating of billing_on field on the UsageCharge resource HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from laravel-shopify.