<?php
file_put_contents(
'/var/www/html/csp_test_vishal/csp-report.log',
date('Y-m-d H:i:s')." ".
file_get_contents('php://input').PHP_EOL.PHP_EOL,
FILE_APPEND
);
http_response_code(204);
?>
