BigstickCarpet/swagger-express-middleware

View on GitHub
lib/cors.js

Summary

Maintainability
A
1 hr
Test Coverage

Function corsHeaders has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function corsHeaders (req, res, next) {
  // Get the default CORS response headers as specified in the Swagger API
  let responseHeaders = getResponseHeaders(req);

  // Set each CORS header
Severity: Minor
Found in lib/cors.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status