Skip to content

Instantly share code, notes, and snippets.

@ZhangYiJiang
Created July 1, 2016 08:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ZhangYiJiang/a2c2460070620033e9385c443dc55cf9 to your computer and use it in GitHub Desktop.
Save ZhangYiJiang/a2c2460070620033e9385c443dc55cf9 to your computer and use it in GitHub Desktop.
<?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