Guides › HTML / PHP sites › Site down or error screens

CORS Error Explained: 'Blocked by CORS Policy' and How to Fix It Properly

Why browsers block requests to another site and the safe fixes.

Reference guide. This guide is written from established practice and the official documentation of the tools involved. We have not yet tested every step on a live demo site. Back up your site before you change anything.

A CORS error means the browser blocked a request from your page to another origin (different domain, subdomain, protocol or port) because that server did not give permission.

What fixes it

Do not

Do not use browser extensions that disable CORS as a fix for visitors, and do not use * for private data.

Debug

See our console guide.

Related guides

Did this solve it? If not, email hello@sitefixlab.org with the exact error text and we will look into it. Try the problem finder.

Last updated 2026-11-21.