commit 9010b6fcc61acaa10dc549d724c4132f855f8867 Author: smarcet Date: Wed Oct 14 23:44:33 2020 -0300 Fix on Origin Change-Id: I360bb99ef62347a878142d838bebbb055550539b Signed-off-by: smarcet diff --git a/app/Services/Utils/UserClientHelper.php b/app/Services/Utils/UserClientHelper.php index d2318d8..41f2bbd 100644 --- a/app/Services/Utils/UserClientHelper.php +++ b/app/Services/Utils/UserClientHelper.php @@ -11,7 +11,6 @@ * See the License for the specific language governing permissions and * limitations under the License. **/ -use Illuminate\Support\Facades\Request; /** * Class UserClientHelper * @package App\Services\Utils @@ -30,7 +29,7 @@ final class UserClientHelper public static function getUserOrigin() { - return $_SERVER['HTTP_REFERER']?? ''; + return $_SERVER['HTTP_REFERER']?? ($_SERVER['HTTP_ORIGIN'] ?? ''); } public static function getUserBrowser()