HSTS + X-Content-Type-Options

This commit is contained in:
daniel_and 2024-05-19 22:33:02 +02:00
parent 3ef5428bd5
commit c6a254ec75

View File

@ -4,7 +4,14 @@ import { defineConfig } from 'vite';
export default defineConfig(({ mode }) => {
return {
plugins: [/*fs()*/],
server: { host: '0.0.0.0', port: 8000 },
server: {
headers: {
'Strict-Transport-Security': 'max-age=63072000; includeSubDomains; preload',
'X-Content-Type-Options': 'nosniff'
},
host: '0.0.0.0',
port: 8000
},
clearScreen: false,
build: {
minify: 'esbuild',