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/ ’ (redirected from ‘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.
Unfortunately, the widget update seems to be running into the security system:
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:
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.
4 Likes
system
Closed
December 31, 2023, 5:05am
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.