View on GitHub

lambda-middleware

A collection of middleware for AWS lambda functions.

@lambda-middleware/ie-no-open

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

A middleware for adding the download options no-open header for Internet Explorer to AWS lambdas.

Lambda middleware

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

Usage

import { ieNoOpen } from "@lambda-middleware/ie-no-open";

// This is your AWS handler
async function helloWorld() {
  return {
    statusCode: 200,
    body: "{}",
  };
}

// Wrap the handler with the middleware
export const handler = ieNoOpen()(helloWorld);