diff --git a/tkserv.cc b/tkserv.cc index 1cfc913..a65c667 100644 --- a/tkserv.cc +++ b/tkserv.cc @@ -1648,6 +1648,8 @@ int main(int argc, char** argv) res.set_header("Content-Security-Policy", "frame-ancestors 'none';"); + res.set_header("Permissions-Policy", "accelerometer=(), ambient-light-sensor=(), camera=(), document-domain=(), encrypted-media=(), fullscreen=(self), geolocation=(), gyroscope=(), magnetometer=(), microphone=(), payment=(), publickey-credentials=(self), serial=(), usb=(), xr-spatial-tracking=()"); + if(endsWith(req.path, ".js") || endsWith(req.path, ".css")) res.set_header("Cache-Control", "max-age=3600");