# Content-Type: application/vnd.api+json - Safari Issue

**URL:** <https://discuss.jsonapi.org/t/content-type-application-vnd-api-json-safari-issue/246>\
**Category:** Uncategorized\
**Created:** [December 3, 2015, 9:23pm UTC](https://discuss.jsonapi.org/t/content-type-application-vnd-api-json-safari-issue/246 "2015-12-03T21:23:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![embersdev](https://avatars.discourse-cdn.com/v4/letter/e/cc9497/32.png) [@embersdev](https://discuss.jsonapi.org/u/embersdev)\
**Post date:** [December 3, 2015, 9:23pm UTC](https://discuss.jsonapi.org/t/content-type-application-vnd-api-json-safari-issue/246/1 "2015-12-03T21:23:36Z")

</div>

It appears this is not compatible with Safari. Using Node.js v5.1 and express 3.13.1 and setting the content type as follows…

> res.contentType(‘application/vnd.api+json’);

will cause the following error

> Failed to load resource: Frame load interrupted

Seems to work fine in Chrome (only other browser I tested) and doesn’t throw the error if i use application/json which tells me the contentType function of express is not the issue but rather Safari is not happy with that content type.

Anyone else experience this?

---

<div class="post-metadata">

**Author:** ![ethanresnick](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@ethanresnick](https://discuss.jsonapi.org/u/ethanresnick)\
**Post date:** [December 5, 2015, 1:31pm UTC](https://discuss.jsonapi.org/t/content-type-application-vnd-api-json-safari-issue/246/2 "2015-12-05T13:31:27Z")

</div>

Can you post a link to the page that’s producing the error? This seems pretty strange to me…

---

<div class="post-metadata">

**Author:** ![embersdev](https://avatars.discourse-cdn.com/v4/letter/e/cc9497/32.png) [@embersdev](https://discuss.jsonapi.org/u/embersdev)\
**Post date:** [December 8, 2015, 11:52am UTC](https://discuss.jsonapi.org/t/content-type-application-vnd-api-json-safari-issue/246/3 "2015-12-08T11:52:21Z")

</div>

I was doing testing on my local computer. I will get a repo up on github with the code I was using so you can reproduce it if you want.

Im starting to think its an invalid scenario, but the fact that Safari doesn’t seem to like the header was a concern.

---

<div class="post-metadata">

**Author:** ![ethanresnick](https://avatars.discourse-cdn.com/v4/letter/e/45deac/32.png) [@ethanresnick](https://discuss.jsonapi.org/u/ethanresnick)\
**Post date:** [December 14, 2015, 2:56am UTC](https://discuss.jsonapi.org/t/content-type-application-vnd-api-json-safari-issue/246/4 "2015-12-14T02:56:20Z")

</div>

Thanks @embersdev! Any update on this?

---

<div class="post-metadata">

**Author:** ![j\_3](https://avatars.discourse-cdn.com/v4/letter/j/e19b73/32.png) [@j\_3](https://discuss.jsonapi.org/u/j_3)\
**Post date:** [June 1, 2018, 4:18pm UTC](https://discuss.jsonapi.org/t/content-type-application-vnd-api-json-safari-issue/246/5 "2018-06-01T16:18:24Z")

</div>

Stumbled on this post while researching this exact same issue. I did not really find any helpful pages so wanted to post what we found while resolving this.

We added “application/json” to our Accept headers list and this resolved the issue…

Cheers

---

<div class="post-metadata">

**Author:** ![dimisus](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@dimisus](https://discuss.jsonapi.org/u/dimisus)\
**Post date:** [February 4, 2019, 9:56pm UTC](https://discuss.jsonapi.org/t/content-type-application-vnd-api-json-safari-issue/246/6 "2019-02-04T21:56:11Z")

</div>

Had the same issue… all my browsers did not accept _application/vnd.api+json_ in my api response headers… I had to go with _application/json_ instead as well.
