소스 검색

Update StatusController

Daniel Supernault 5 년 전
부모
커밋
6c97b2162c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/Http/Controllers/StatusController.php

+ 1 - 1
app/Http/Controllers/StatusController.php

@@ -95,7 +95,7 @@ class StatusController extends Controller
         $showCaption = $request->filled('caption') && $request->caption !== false;
         $layout = $request->filled('layout') && $request->layout == 'compact' ? 'compact' : 'full';
         $content = view('status.embed', compact('status', 'showLikes', 'showCaption', 'layout'));
-        return response($content)->header('X-Frame-Options', 'ALLOWALL');
+        return response($content)->withHeaders(['x-frame-options' => 'ALLOWALL']);
     }
 
     public function showObject(Request $request, $username, int $id)