Add the X-Content-Type-Options header
headers-xcto · Updated
Browsers guess the type of a response when the server does not say. Sending nosniff stops an uploaded file being run as script.
CDN and edge
Web servers
Frameworks
Cloudflare
- 1 Go to Rules > Transform Rules > Modify Response Header
- 2 Create a rule that sets X-Content-Type-Options to the desired value
- 3 Deploy the rule
Header name: X-Content-Type-Options
Value: nosniffRelated fixes
Does your app still have this?
Scan your domain