I am working on Shopify Private app in the Laravel framework. In this app, I am using the Shopify app proxy concept. I have created a custom page in the app which I want the show to the customer. I have added a custom app page link in the Shopify app proxy URL. Everything is working fine except one thing that is proxy URL.
Whenever I have tried to open my app proxy URL by a direct hit in the browser then it will redirect me to my app server's URL. I have to debug this issue but didn't find any solution. Here's the example of my issue for more clarification:-
My App custom page URL is https://testserver.in/secure
My App proxy URL is https://teststore.myshopify.com/a/secure
When directly hit above link in the browser then it will redirect me to below link:-
I have searched regarding this and most of the search results said that this issue comes in the Laravel framework and my app is also in the Laravel framework. Please help me with this.
You would need to create a route by name "secure" in web.php and call controller and return view.