From 19fa11361857e0c608ed566564b18229c473a81f Mon Sep 17 00:00:00 2001 From: AmandaNP Date: Tue, 30 Jul 2024 16:50:54 -0400 Subject: [PATCH] More live debug --- app/Http/Controllers/Appeal/PublicAppealController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/Appeal/PublicAppealController.php b/app/Http/Controllers/Appeal/PublicAppealController.php index 7ec7546c..f2c9151c 100644 --- a/app/Http/Controllers/Appeal/PublicAppealController.php +++ b/app/Http/Controllers/Appeal/PublicAppealController.php @@ -209,7 +209,7 @@ public function view(Request $request) $weborigin = str_replace('http://','',str_replace('https://','',$request->header('origin'))); $envappurl = str_replace('http://','',str_replace('https://','',env('APP_URL'))); if($weborigin != $envappurl) { - abort(403, "Header mismatch"); + abort(403, "Header mismatch - ".$envappurl." vs ".$weborigin); } $appealkey = $request->input('appealkey'); $appeal = Appeal::where('appealsecretkey', '=', $appealkey)->first();