hugo/docs/content/en/news/0.67.0-relnotes/index.md
2021-04-20 20:22:53 +02:00

4.1 KiB


date: 2020-03-09 title: "Hugo 0.67.0: Custom HTTP headers" description: "This version brings Custom HTTP headers to the development server and exclude/include filters in Hugo Deploy." categories: ["Releases"]

The two main items in Hugo 0.67.0 is custom HTTP header support in hugo server and include/exclude filters for Hugo Deploy.

Being able to configure HTTP headers in your development server means that you can now verify how your site behaves with the intended Content Security Policy settings etc., e.g.:

{{< code-toggle file="config" >}} [server] server.headers for = "/**.html"

[server.headers.values] X-Frame-Options = "DENY" X-XSS-Protection = "1; mode=block" X-Content-Type-Options = "nosniff" Referrer-Policy = "strict-origin-when-cross-origin" Content-Security-Policy = "script-src localhost:1313" {{< /code-toggle >}}

Note: This release also changes how raw HTML files inside /content is processed to be in line with the documentation. See #7030.

This release represents 7 contributions by 4 contributors to the main Hugo code base.@bep leads the Hugo development with a significant amount of contributions, but also a big shoutout to @satotake, @sams96, and @davidejones for their ongoing contributions. And a big thanks to @digitalcraftsman and @onedrawingperday for their relentless work on keeping the themes site in pristine condition and to @davidsneighbour and @kaushalmodi for all the great work on the documentation site.

Many have also been busy writing and fixing the documentation in hugoDocs, which has received 5 contributions by 5 contributors. A special thanks to @bep, @psliwka, @digitalcraftsman, and @jasikpark for their work on the documentation site.

Hugo now has:

Enhancements

Other

Fixes

Templates

Other