Skip to content
This repository has been archived by the owner on Nov 30, 2022. It is now read-only.

App must set security headers to protect against clickjacking. #1032

Answered by filipembcruz
filipembcruz asked this question in Q&A
Discussion options

You must be logged in to vote

The solution is put the code below above your app.blade.php html (or any layout base)

<?php
  header("Content-Security-Policy: frame-ancestors https://".auth()->user()->name);
?>

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@haseebbutt1999
Comment options

Answer selected by filipembcruz
Comment options

You must be logged in to vote
1 reply
@filipembcruz
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants