Access to XMLHttpRequest at ‘https://infinityfree.net/errors/403/’ (redirected from ‘my website’) from origin ‘my website’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource. please help me i am getting this error message please
The CORS blocking is probably not the issue, it’s the fact that your site is trying to load a page which redirects to our 403 Forbidden error. If you ensure that the required URLs in your site don’t return a 403 Forbidden error, then the CORS issue will be gone too.
If you have access to the site you are sending the request to, you can simply add this PHP Code to the top of the page to disable CORS Block: <?php header("Access-Control-Allow-Origin: *"); ?>