Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
ゆめ 2024-11-07 01:09:23 -06:00
parent 28a5dcfa31
commit 858800ad2d
No known key found for this signature in database

View file

@ -20,11 +20,11 @@ export function makeHstsHook(host: string, preload: boolean = false): onRequestH
reply.header('strict-transport-security', 'max-age=31536000; includeSubDomains; preload');
}
done();
}
};
} else {
return (request, reply, done) => {
reply.header('strict-transport-security', 'max-age=15552000');
done();
}
};
}
}
}