@nessframework/security
v3.0.0
Published
Secure development and preview headers for Ness.js applications.
Downloads
279
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'",
}),
],
}),
],
};