From 940209018a9e08ad49f65ee01ce15ea2c57cd436 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 23 Jan 2022 02:44:34 -0700 Subject: [PATCH] Update ProfileController --- app/Http/Controllers/ProfileController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/ProfileController.php b/app/Http/Controllers/ProfileController.php index 6657a290a..eb841178a 100644 --- a/app/Http/Controllers/ProfileController.php +++ b/app/Http/Controllers/ProfileController.php @@ -232,7 +232,8 @@ class ProfileController extends Controller } $profile = AccountService::get($profile->id); - return view('profile.embed', compact('profile'))->withHeaders(['X-Frame-Options' => 'ALLOWALL']); + $res = view('profile.embed', compact('profile')); + return response($res)->withHeaders(['X-Frame-Options' => 'ALLOWALL']); } public function stories(Request $request, $username)