Created
July 1, 2016 08:00
-
-
Save ZhangYiJiang/a2c2460070620033e9385c443dc55cf9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Middleware; | |
use Illuminate\Http\Request; | |
class DenyFrames | |
{ | |
public function handle(Request $request, \Closure $next) | |
{ | |
return $next($request)->header('X-Frame-Options', 'DENY'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment