# Sitemap returning incorrect headers

**URL:** <https://forum.ghost.org/t/sitemap-returning-incorrect-headers/12072>\
**Category:** Developer help\
**Created:** [February 17, 2020, 8:46pm UTC](https://forum.ghost.org/t/sitemap-returning-incorrect-headers/12072 "2020-02-17T20:46:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![heyimnick](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/heyimnick/32/6394_2.png) [@heyimnick](https://forum.ghost.org/u/heyimnick)\
**Post date:** [February 17, 2020, 8:46pm UTC](https://forum.ghost.org/t/sitemap-returning-incorrect-headers/12072/1 "2020-02-17T20:46:49Z")

</div>

Hi all,

Was attempting to add my blog’s sitemap.xml to Google Search Console and it returned an error stating that it was using incorrect headers. So I plugged it into the [XML-Sitemaps.com](http://XML-Sitemaps.com) validator and sure enough it gave the same error:

`Incorrect http header content-type: "text/html; charset=utf-8" (expected: "application/xml")`

Weirdly enough if I go to the sitemap directly ([https://heyimnick.com/sitemap.xml](https://heyimnick.com/sitemap.xml)) it shows correctly. Is there something I’m missing?

Thanks!

---

<div class="post-metadata">

**Author:** ![heyimnick](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/heyimnick/32/6394_2.png) [@heyimnick](https://forum.ghost.org/u/heyimnick)\
**Post date:** [February 17, 2020, 8:50pm UTC](https://forum.ghost.org/t/sitemap-returning-incorrect-headers/12072/2 "2020-02-17T20:50:13Z")

</div>

Nevermind I answered my own question. Private mode was still on. Doh!

---

<div class="post-metadata">

**Author:** ![Fathul](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/fathul/32/2727_2.png) [@Fathul](https://forum.ghost.org/u/Fathul)\
**Post date:** [March 15, 2020, 5:12pm UTC](https://forum.ghost.org/t/sitemap-returning-incorrect-headers/12072/3 "2020-03-15T17:12:17Z")

</div>

How to fix this issue? Find the same thing
