Add new security headers

This commit is contained in:
Daniel Winzen
2021-05-14 18:10:02 +02:00
parent 613096ecef
commit 7868341657
2 changed files with 4 additions and 3 deletions

View File

@ -41,6 +41,7 @@ if(!$id=$stmt->fetch(PDO::FETCH_NUM)){
header_remove('X-Frame-Options');
header("Content-Security-Policy: base-uri 'self'; default-src 'none'; frame-ancestors '*'");
header('Content-Type: image/gif');
header('Access-Control-Allow-Origin: *');
//add visitor to db
if(isSet($_COOKIE["counted$_REQUEST[id]"])){