Is it possible to redirect myshopify admin page or change query from imbedded app in PHP?

Viewed 29

Any redirect causes a "*.myshopify.com refused to connect." a 302 error, if called like this:

header('Location: ' . $location);

or "*.myshopify.com redirected you too many times." a 302 error, with echo:

echo "<script>window.location.href='" . $location . "';</script>";

It says SameSite=Lax prevents the cookie from being sent in a cross-site request. But trying to change it with:

header('Set-Cookie: cross-site-cookie=whatever; SameSite=None; Secure');

Yet, still, redirect is not allowed.

1 Answers

Can you write here about $location content ? if your $location data is a same url with currently it will be again infinite. Please enter code

<?php
// .........

die($location);

and write here exits result.

Related