Study-question generator: CORS blocks my Flask API
Stuck point
my Flask + AI backend answers curl perfectly, but the browser blocks every request with a CORS error even after I added flask-cors. also my API key is still in the frontend.
progress status — how done is it, really?
that 18-pt gap is probably exactly where the last step is hiding.
What I need help with
fix CORS properly + move the API key behind the backend.
Your first move
Move the AI call into your Flask backend, add flask-cors to that route, and have the frontend hit your backend — this fixes CORS and hides your API key at once.
the road everyone walks
every shipped app walked this exact road. being stuck partway isn't failing, it's the middle of the climb — and the AI read (52%) puts this project roughly here.
next stop: the core feature works · the thing it's actually for — where most stall.
want YOUR whole road plotted. every step, tool & why? plan your buildknow the missing piece? drop it in the room below.
help outProject story›
What's already working
the AI generation works great when I hit it with curl.
The goal
a study tool that generates questions from my notes, safely.