1
mirror of https://github.com/jakejarvis/simpip.git synced 2025-06-27 16:15:41 -04:00

remove some header overhead

This commit is contained in:
2019-09-10 09:21:32 -04:00
parent f6ac5292f7
commit 05585e81f4

View File

@ -6,15 +6,10 @@ async function handle(request) {
const url = new URL(request.url);
let customHeaders = {
"Content-Type": "text/plain; charset=utf-8",
"Content-Security-Policy": "default-src 'none';",
"Feature-Policy": "accelerometer 'none'; camera 'none'; geolocation 'none'; gyroscope 'none'; magnetometer 'none'; microphone 'none'; sync-xhr 'none'; payment 'none'; usb 'none'; vr 'none'",
"X-Content-Type-Options": "nosniff",
"X-XSS-Protection": "1; mode=block",
"X-Frame-Options": "SAMEORIGIN",
"Referrer-Policy": "no-referrer",
"Cache-Control": "max-age=0, no-cache, no-store, must-revalidate",
"Pragma": "no-cache",
"Expires": "Thu, 01 Jan 1970 00:00:01 GMT",
"Content-Security-Policy": "default-src 'none';",
"X-Did-You-Know": "You can use \"curl -4 simpip.com\" or \"curl -6 simpip.com\" to get either address!",
"X-Source-Code": "https://github.com/jakejarvis/simpip"
}