Any: “has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header”
What it means
The browser calls an API on another domain that doesn't allow your site.
How to fix it
Call the API from your backend/edge function, or add the right CORS headers on the server.
Paste this into your AI tool
Stop retrying previous fixes. I'm getting this error: "has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header". Likely cause: The browser calls an API on another domain that doesn't allow your site. Before editing, show me the relevant files and confirm the root cause. Then: Call the API from your backend/edge function, or add the right CORS headers on the server. Change only what's necessary, don't delete working code, don't add new libraries unless required, and tell me exactly what you changed and how to verify it.
Your error's a bit different? Paste it and get a fix prompt written for your exact case.
Get my fix prompt — 3 free