Watch: Fix "blocked by CORS policy: No 'Access-Control-Allow-Origin' header" | Vovy
Watch Vovy do it on a Mac: "I keep getting a CORS error when my app calls my API, fix it". Vovy reads the exact CORS error, explains which server has to allow your domain, and adds the right headers without opening your API to everyone.
"I keep getting a CORS error when my app calls my API, fix it"
Vovy reads the exact CORS error, explains which server has to allow your domain, and adds the right headers without opening your API to everyone.
What happens in the video
- Read the full CORS error: Vovy opens the console and reads the message, like "No 'Access-Control-Allow-Origin' header is present". CORS is the browser checking the API agreed to talk to your site.
- Inspect the preflight request: In the Network tab it finds the OPTIONS request the browser sends first and shows which header the server left out.
- Find who owns the fix: CORS is fixed on the server being called, not in your front end. Vovy tells you if that is your API route, a Supabase edge function, or a third party.
- Add the headers in your code: It has Cursor add Access-Control-Allow-Origin for your real domains only, and handle OPTIONS requests, for example in your edge function.
- Confirm the call works: Vovy reloads, repeats the action, and shows a card with the request now returning 200 and the headers that made it pass.
Read the step-by-step guideLoading...