home
/
zktecojo
/
public_html
/
vendor
/
laravel
/
framework
/
src
/
Illuminate
/
Http
➕ New
📤 Upload
✎ Editing:
FrameGuard.php
← Back
<?php namespace Illuminate\Http; use Symfony\Component\HttpKernel\HttpKernelInterface; use Symfony\Component\HttpFoundation\Request as SymfonyRequest; class FrameGuard implements HttpKernelInterface { /** * The wrapped kernel implementation. * * @var \Symfony\Component\HttpKernel\HttpKernelInterface */ protected $app; /** * Create a new FrameGuard instance. * * @param \Symfony\Component\HttpKernel\HttpKernelInterface $app * @return void */ public function __construct(HttpKernelInterface $app) { $this->app = $app; } /** * Handle the given request and get the response. * * @implements HttpKernelInterface::handle * * @param \Symfony\Component\HttpFoundation\Request $request * @param int $type * @param bool $catch * @return \Symfony\Component\HttpFoundation\Response */ public function handle(SymfonyRequest $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { $response = $this->app->handle($request, $type, $catch); $response->headers->set('X-Frame-Options', 'SAMEORIGIN', false); return $response; } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel