nosecone
v1.0.0-beta.15
Published
Protect your Response with secure headers
Readme
nosecone
Protect your Response with secure headers.
What is this?
Nosecone makes it easy to add and configure security headers. This package exists so that you can secure your server even if you do not use Arcjet.
When should I use this?
You can use this package with or without Arcjet to protect your server.
You can use @nosecone/next or @nosecone/sveltekit if you are using those
frameworks.
Install
This package is ESM only. Install with npm in Node.js:
npm install noseconeExample
import nosecone from "nosecone";
const response = new Response(null, { headers: nosecone() });
console.log(response);
// => Response {
// status: 200,
// statusText: '',
// headers: Headers {
// 'content-security-policy': "base-uri 'none'; …",
// …
// }
// …
// }License
Apache License, Version 2.0 © Arcjet Labs, Inc.
Derivative work based on
josh-hemphill/csp-typed-directives
licensed under
MIT © Joshua Hemphill and
Tecnico Corporation.
Our work picks the couple types that we need.
It is also based on
helmetjs/helmet licensed under
MIT © Evan Hahn and Adam Baldwin.
We were inspired by their defaults.
