Skip to main content

Define an explicit content type

Summary

All system files generated dynamically must have an explicitly defined content type.

Description

This configuration ensures that the appropriate content type is included in the HTTP response headers when the file is served. Programming languages may include code to set the content type based on the nature of the dynamically generated content. Additionally, web frameworks and libraries provide mechanisms for specifying content types in a clear way.

Supported In

This requirement is verified in following services

PlanSupported
Essential🔴
Advanced🔴

References

free trial

Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' hacking team, fill out this contact form.