Merge pull request #103 from whalehub/patch-1
chat.php: Forbid tracking users via FLoC
This commit is contained in:
4
chat.php
4
chat.php
@ -2,7 +2,7 @@
|
|||||||
/*
|
/*
|
||||||
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Main program
|
* LE CHAT-PHP - a PHP Chat based on LE CHAT - Main program
|
||||||
*
|
*
|
||||||
* Copyright (C) 2015-2020 Daniel Winzen <daniel@danwin1210.me>
|
* Copyright (C) 2015-2021 Daniel Winzen <daniel@danwin1210.me>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -3477,7 +3477,7 @@ function send_headers(){
|
|||||||
header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0, private');
|
header('Cache-Control: no-cache, no-store, must-revalidate, max-age=0, private');
|
||||||
header('Expires: 0');
|
header('Expires: 0');
|
||||||
header('Referrer-Policy: no-referrer');
|
header('Referrer-Policy: no-referrer');
|
||||||
header("Permissions-Policy: accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), speaker-selection=(), conversion-measurement=(), focus-without-user-activation=(), hid=(), idle-detection=(), sync-script=(), vertical-scroll=(), serial=(), trust-token-redemption=()");
|
header("Permissions-Policy: accelerometer=(), ambient-light-sensor=(), autoplay=(), battery=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), speaker-selection=(), conversion-measurement=(), focus-without-user-activation=(), hid=(), idle-detection=(), sync-script=(), vertical-scroll=(), serial=(), trust-token-redemption=(), interest-cohort=()");
|
||||||
if(!get_setting('imgembed') || !($U['embed'] ?? false)){
|
if(!get_setting('imgembed') || !($U['embed'] ?? false)){
|
||||||
header("Cross-Origin-Embedder-Policy: require-corp");
|
header("Cross-Origin-Embedder-Policy: require-corp");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user