Security header middleware collection for Koa applications that wraps Helmet.js
91
Build a Koa web application that implements configurable clickjacking protection.
Your application should:
FRAME_POLICY:
strict: Deny all frame embeddingsame-origin: Allow embedding only from same origin (default behavior)disabled: Skip clickjacking protection entirely/health endpoint that returns JSON: { status: 'ok' }@generates
/**
* Creates and configures a Koa application with clickjacking protection
* @returns {object} Configured Koa app instance
*/
function createApp() {
// Implementation here
}
/**
* Starts the server on the specified port
* @param {number} port - Port to listen on
* @returns {object} HTTP server instance
*/
function startServer(port) {
// Implementation here
}
module.exports = { createApp, startServer };Provides web application framework for Node.js
@satisfied-by
Provides security header middleware including clickjacking protection
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-koa-helmetdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10