jeudi 23 septembre 2021

Error X-FRAME-OPTION Embed PDF File From Folder Sharing Using Laravel Web App

please help me.

I have an application that loads a pdf file from a shared folder. but i found a problem with security in browser. I've tried adding a header reference to the app with middleware:

$response = $next($request);
$response->header('X-Frame-Options', 'DENY');
return $response;

and setting .htacces:

<IfModule mod_headers.c>
    # Prevent click jacking
    Header set X-Frame-Options Deny
    Header always append X-Frame-Options SAMEORIGIN
</IfModule>

but it doesn't solve this problem. Can anyone help me about my problem?

Error x-frame-option




Aucun commentaire:

Enregistrer un commentaire