How to solve x-frame-options' to 'sameorigin' in Laravel Shopify App
I'm using the Larvel Shopify package to make a Shopify app with Laravel all setup is done but I faced a problem that' I can't solve. Please help me. here is the package link
Follow the below steps to allow embedding a Laravel Shopify app within an iframe and solve the 'x-frame-options' issue:
1- Open the AppServiceProvider.php file in the app/Providers directory.
2- Add code in the boot method to modify the response headers.
3- Save and close the file.
4- Open the Authenticate.php middleware file in the app/Http/Middleware directory.
5- Add a line in the handle method to set the frame options header.
6- Save and close the file.
7- The changes will enable embedding the app in an iframe by adding the 'X-Frame-Options' header.