Add
This commit is contained in:
parent
3c8cefc60f
commit
4f694777e5
|
|
@ -24,7 +24,9 @@ public function handle(Request $request, Closure $next): Response
|
|||
if ($request->has('allow_framing')) {
|
||||
$response->headers->remove('X-Frame-Options');
|
||||
} else {
|
||||
$response->headers->set('X-Frame-Options', 'DENY');
|
||||
// برای تست Clickjacking موقتاً این خط را کامنت میکنیم تا ریدایرکتها هم مسدود نشوند
|
||||
// $response->headers->set('X-Frame-Options', 'DENY');
|
||||
$response->headers->remove('X-Frame-Options');
|
||||
}
|
||||
|
||||
// ۳. خاموش کردن محافظت پیشفرض XSS
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user