Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny'. (Plugin Facebook-comments Laravel)

517 views Asked by At

i'm adding facebook comments plugin from this web plugin comment facebook , but i get error Refused to display 'https://www.facebook.com/' in a frame because it set 'X-Frame-Options' to 'deny' . I've tried various ways but the result is zonk, please help me.. I'm using laravel 8 i tried using this method target="_top" but can't, i also tried this but its not working

public function handle(Request $request, Closure $next)
  {
    $response = $next($request);
    $response->headers->set('X-Frame-Options', 'SAMEORIGIN', false);
    return $response;

  }
0

There are 0 answers