lib/cors.js
Function corsHeaders
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
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