MCPcopy
hub / github.com/nestjs/nest / enableCors

Method enableCors

packages/core/nest-application.ts:284–286  ·  view source on GitHub ↗
(options?: any)

Source from the content-addressed store, hash-verified

282 }
283
284 public enableCors(options?: any): void {
285 this.httpAdapter.enableCors(options);
286 }
287
288 public enableVersioning(
289 options: VersioningOptions = { type: VersioningType.URI },

Callers 1

applyOptionsMethod · 0.95

Calls 1

enableCorsMethod · 0.65

Tested by

no test coverage detected