Content Type Validation

Validate content-type on request headers to prevent XSS attacks

Validating the Content-Type header on the request can help to make APIs more secure by ensuring that the request data is in the expected format and reducing the risk of attacks such as injection attacks or cross-site scripting (XSS).