erlyaws / yaws

Yaws webserver
https://erlyaws.github.io
BSD 3-Clause "New" or "Revised" License
1.28k stars 267 forks source link

Support for the X-Content-Type-Options header? #362

Closed etnt closed 5 years ago

etnt commented 5 years ago

Hi guys, I wonder if it is possible to optionally add this header for "script" and "style" type of files?

See here for more info about what the header means: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options

Cheers!

vinoski commented 5 years ago

Is there a reason your code or application can't add this response header itself?

vinoski commented 5 years ago

This can now be solved using the extra response headers feature added in commit c625001, so closing this issue.