@lambda-middleware/ie-no-open
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);