@lambda-middleware/frameguard
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    @lambda-middleware/frameguard

    npm version downloads open issues debug build status codecov dependency status devDependency status

    AWS lambda middleware for preventing clickjacking by using frameguards

    Lambda middleware

    This middleware is part of the lambda middleware series. It can be used independently.

    Usage

    import { frameguard } from "@lambda-middleware/frameguard";
    import { APIGatewayProxyResult } from "aws-lambda";
    
    // This is your AWS handler
    async function helloWorld(): Promise<APIGatewayProxyResult> {
      return {
        statusCode: 200,
        body: "",
      };
    }
    
    // Wrap the handler with the middleware
    export const handler = frameguard()(helloWorld);

    Install

    npm i @lambda-middleware/frameguard

    DownloadsWeekly Downloads

    3

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    9.09 kB

    Total Files

    17

    Last publish

    Collaborators

    • dbartholomae