@nest-middlewares/cors
Advanced tools
Weekly downloads
Readme
This is the Nest Middleware wrapper around cors.
@nest-middlewares/cors
is available from NPM. You can install it with this command:
npm install --save @nest-middlewares/cors
import { CorsMiddleware } from '@nest-middlewares/cors';
@Module(...)
export class MyModule {
configure(consumer: MiddlewaresConsumer) {
// IMPORTANT! Call Middleware.configure BEFORE using it for routes
HelmetMiddleware.configure( /* options as per helmet docs */ )
consumer.apply(CorsMiddleware).forRoutes( /* your routes */ );
}
}
FAQs
NestJS Middleware for CORS
The npm package @nest-middlewares/cors receives a total of 376 weekly downloads. As such, @nest-middlewares/cors popularity was classified as not popular.
We found that @nest-middlewares/cors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.