# Allow specifying custom headers in \`load\_data\` function

**URL:** <https://zola.discourse.group/t/allow-specifying-custom-headers-in-load-data-function/1135>\
**Category:** Feature requests\
**Created:** [January 9, 2022, 1:13am UTC](https://zola.discourse.group/t/allow-specifying-custom-headers-in-load-data-function/1135 "2022-01-09T01:13:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![liushuyu](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/liushuyu/32/586_2.png) [@liushuyu](https://zola.discourse.group/u/liushuyu)\
**Post date:** [January 9, 2022, 1:13am UTC](https://zola.discourse.group/t/allow-specifying-custom-headers-in-load-data-function/1135/1 "2022-01-09T01:13:06Z")

</div>

It would be very beneficial to add a `headers` option to `load_data` so that protected resources could be fetched by `load\_data.

Use-cases: when accessing protected APIs or workaround an issue with GitHub Markdown API [for instance, you need to render a `gfm` formatted markdown file (e.g. release notes/issues texts)].

---

<div class="post-metadata">

**Author:** ![liushuyu](https://yyz2.discourse-cdn.com/free1/user_avatar/zola.discourse.group/liushuyu/32/586_2.png) [@liushuyu](https://zola.discourse.group/u/liushuyu)\
**Post date:** [January 11, 2022, 11:29pm UTC](https://zola.discourse.group/t/allow-specifying-custom-headers-in-load-data-function/1135/2 "2022-01-11T23:29:03Z")

</div>

Fixed in [templates/load\_data: add an optional parameter `headers` by liushuyu · Pull Request #1710 · getzola/zola · GitHub](https://github.com/getzola/zola/pull/1710)
