Use PHP header() function to send HTTP headers to client

October 30th, 2017 | #php #http #html

TIL the header() function in PHP that sends raw HTTP headers to a client.

<?php
    header("X-Content-Type-Options: nosniff");
    header("X-Frame-Options: DENY");
?>
<!doctype html>
<html lang="en">
Read more

© 2018 Tonny Garić | With from Nijmegen, The Netherlands