@aikidosec/firewall
Version:
Zen by Aikido is an embedded Web Application Firewall that autonomously protects Node.js apps against common and critical attacks
13 lines (12 loc) • 382 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isJsonContentType = isJsonContentType;
const jsonContentTypes = [
"application/json",
"application/vnd.api+json",
"application/csp-report",
"application/x-json",
];
function isJsonContentType(contentType) {
return jsonContentTypes.some((type) => contentType.includes(type));
}