# WordPress Error: "Response to preflight request..."

**URL:** <https://forum.infinityfree.com/t/wordpress-error-response-to-preflight-request/87823>\
**Category:** Hosting Support\
**Created:** [December 23, 2023, 8:31pm UTC](https://forum.infinityfree.com/t/wordpress-error-response-to-preflight-request/87823 "2023-12-23T20:31:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon49803756](https://forum.infinityfree.com/letter_avatar/anon49803756/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon49803756](https://forum.infinityfree.com/u/anon49803756)\
**Post date:** [December 23, 2023, 8:31pm UTC](https://forum.infinityfree.com/t/wordpress-error-response-to-preflight-request/87823/1 "2023-12-23T20:31:59Z")

</div>

### Error Message

Hello, I can’t save changes by updating widgets in the Wordpress section: Appereance \>\> Widgets, because the text: “An error occurred. You are probably offline” appears and in the console log there is this error message:

" Access to fetch at ‘[https://errors.infinityfree.net/errors/403/](https://errors.infinityfree.net/errors/403/)’ (redirected from ‘[https://creandoandricreando.great-site.net/wp-json/batch/v1?\_locale=user](https://creandoandricreando.great-site.net/wp-json/batch/v1?_locale=user)’) has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. If an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled. "

I’ve tried to disable all plugins and to return to the default theme, but nothing is changed.

---

<div class="post-metadata">

**Author:** ![ChrisPAR](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/chrispar/32/8743_2.png) [@ChrisPAR](https://forum.infinityfree.com/u/ChrisPAR)\
**Post date:** [December 24, 2023, 5:04am UTC](https://forum.infinityfree.com/t/wordpress-error-response-to-preflight-request/87823/2 "2023-12-24T05:04:46Z")

</div>

Unfortunately, the widget update seems to be running into the security system:

> [@Ensuring only web browsers can access your website](https://forum.infinityfree.com/t/ensuring-only-web-browsers-can-access-your-website/49353):
>
> InfinityFree is a website hosting service. That means that the hosting accounts we provided are intended for hosting websites. Websites contain pages that are accessed through web browsers. InfinityFree is not intended to be used for file sharing, API hosting, database hosting or background tasks/tools. To help enforce this, free hosting enforces a security system that makes sure that anyone trying to access your website is using a normal web browser. This is done by checking whether the web br…

An explanation on why this happens is mentioned here:

> [@WordPress Site Health known issues](https://forum.infinityfree.com/t/wordpress-site-health-known-issues/78910/1):
>
> ## Your site could not complete a loopback request
> 
> Some plugins and themes will try to connect back to your website like a visitor, often to scan the content of your website to check for things like configuration issues.
> 
> This does not work on InfinityFree. Websites on InfinityFree use a security system that blocks automated access to websites hosted here. This also affects WordPress trying to access it’s own website. Connections like that may result in a 403 Forbidden response, or receiving the HTML code for the security challenge.
> 
> Cloudflare can be used to bypass this security for connections from remote sites, but connections from InfinityFree website servers always connect directly to our servers, and do not check the publicly configured DNS settings of your domain.
> 
> ## The REST API encountered an unexpected result
> 
> Please see the section “Your site could not complete a loopback request”, the same issue prevents WordPress from interacting with it’s own REST API.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [December 31, 2023, 5:05am UTC](https://forum.infinityfree.com/t/wordpress-error-response-to-preflight-request/87823/3 "2023-12-31T05:05:06Z")

</div>

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