# Swiftype Hosted API - error Failed to fetch 9:39am (cors issue)

**URL:** <https://discuss.elastic.co/t/swiftype-hosted-api-error-failed-to-fetch-9-39am-cors-issue/208473>\
**Category:** Elastic Search\
**Tags:** elastic-app-search\
**Created:** [November 19, 2019, 9:41am UTC](https://discuss.elastic.co/t/swiftype-hosted-api-error-failed-to-fetch-9-39am-cors-issue/208473 "2019-11-19T09:41:57Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harry\_Knowles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harry_knowles/32/48727_2.png) [@Harry\_Knowles](https://discuss.elastic.co/u/Harry_Knowles)\
**Post date:** [November 19, 2019, 9:41am UTC](https://discuss.elastic.co/t/swiftype-hosted-api-error-failed-to-fetch-9-39am-cors-issue/208473/1 "2019-11-19T09:41:57Z")

</div>

Hi, I'm having an issue with the API currently.

Website: [https://www.rydale.com/](https://www.rydale.com/)

We're recieving a CORS error:

> Access to fetch at '[https://host-64fz8w.api.swiftype.com/api/as/v1/engines/rydale/search.json](https://host-64fz8w.api.swiftype.com/api/as/v1/engines/rydale/search.json)' from origin '[https://www.rydale.com](https://www.rydale.com)' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'.

Does anyone know what is going on? Our entire search is currently offline during our black friday sale!

Thanks, Harry.

---

<div class="post-metadata">

**Author:** ![Harry\_Knowles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harry_knowles/32/48727_2.png) [@Harry\_Knowles](https://discuss.elastic.co/u/Harry_Knowles)\
**Post date:** [November 19, 2019, 10:28am UTC](https://discuss.elastic.co/t/swiftype-hosted-api-error-failed-to-fetch-9-39am-cors-issue/208473/2 "2019-11-19T10:28:32Z")

</div>

I have 3 websites that are experiencing this issue, live missing out on sales and multiple customers calling in to report the same issue. How are we supposed to notify you guys of such an issue! Down for 1 hour now during black friday sales with no word from Swiftype.

Please can we get someone looking into this, or at least an update! I have emailed support with no reply.

Edit: Seems to be the same issue for the searches on [https://swiftype.com/?size=n\_10\_n](https://swiftype.com/?size=n_10_n) too.

Thank you.

---

<div class="post-metadata">

**Author:** ![Toby-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toby-elastic/32/56715_2.png) [@Toby-Elastic](https://discuss.elastic.co/u/Toby-Elastic)\
**Post date:** [November 19, 2019, 10:59am UTC](https://discuss.elastic.co/t/swiftype-hosted-api-error-failed-to-fetch-9-39am-cors-issue/208473/3 "2019-11-19T10:59:07Z")

</div>

This is currently under investigation. We will provide an update once this has been resolved. Apologies for the inconveniences.

---

<div class="post-metadata">

**Author:** ![Toby-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toby-elastic/32/56715_2.png) [@Toby-Elastic](https://discuss.elastic.co/u/Toby-Elastic)\
**Post date:** [November 19, 2019, 11:11am UTC](https://discuss.elastic.co/t/swiftype-hosted-api-error-failed-to-fetch-9-39am-cors-issue/208473/4 "2019-11-19T11:11:44Z")

</div>

The issue has been resolved. Would you please test it on your end and confirm that it is working again for you? Thank you.

---

<div class="post-metadata">

**Author:** ![Harry\_Knowles](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harry_knowles/32/48727_2.png) [@Harry\_Knowles](https://discuss.elastic.co/u/Harry_Knowles)\
**Post date:** [November 19, 2019, 11:16am UTC](https://discuss.elastic.co/t/swiftype-hosted-api-error-failed-to-fetch-9-39am-cors-issue/208473/5 "2019-11-19T11:16:11Z")

</div>

Hi, yes seems to be working now.

Is there a better way to contact you when there are issues like this? Seemed like this could have been fixed a lot sooner had the proper reporting processes been put in place.

Nonetheless thanks for the fix.

Cheers.

---

<div class="post-metadata">

**Author:** ![Toby-Elastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/toby-elastic/32/56715_2.png) [@Toby-Elastic](https://discuss.elastic.co/u/Toby-Elastic)\
**Post date:** [November 19, 2019, 1:45pm UTC](https://discuss.elastic.co/t/swiftype-hosted-api-error-failed-to-fetch-9-39am-cors-issue/208473/6 "2019-11-19T13:45:37Z")

</div>

The best course of action is always to open a case with our support team. In this particular case our operations team was immediately aware of the issue and was working to resolve it as quickly as possible. We did not provide an update as quickly as we would have liked on [https://status.swiftype.com/](https://status.swiftype.com/) but further details have been provided there in the meantime.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 17, 2019, 1:45pm UTC](https://discuss.elastic.co/t/swiftype-hosted-api-error-failed-to-fetch-9-39am-cors-issue/208473/7 "2019-12-17T13:45:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
