Skip to content
Dev.to1 min read

Cursor's CORS Config Is Wide Open by Default...

TL;DR Cursor and Claude Code default to cors() with no arguments -- any website can read your API responses CWE-942 affects Express, Fastify, and FastAPI backends generated without explicit origin config Fix: pass an explicit origin array and set credentials: true; browsers enforce the restriction for you I reviewed four side projects last week, all vibe-coded with Cursor. Clean structure, decent test coverage, working auth flows. Then I checked the CORS configuration in each one. Every single o
Read original on dev.to
0
0

Comment

Sign in to join the discussion.

Loading comments…

Related

Get the 10 best reads every Sunday

Curated by AI, voted by readers. Free forever.

Liked this? Start your own feed.

0
0