@nessframework/security
v2.1.2
Published
Secure development and preview headers for Ness.js applications.
Maintainers
Readme
Adds secure defaults to Vite development and preview servers. Production response headers remain configurable through the server section of ness.config.mjs.
npm install --save-dev @nessframework/securityimport { ness } from '@nessframework/router/vite';
import security from '@nessframework/security';
export default {
plugins: [
ness({
plugins: [
security({
contentSecurityPolicy: "default-src 'self'",
}),
],
}),
],
};