Core: learn it Step 11 of 16 on the Full-Stack Developer roadmap

CORS and dev proxies

During development, React and Django run on different ports, so the browser treats them as different origins. Either allow the frontend's origin with CORS on the backend, or use your dev server's proxy.

Resources

More in Connecting front and back

See it on the Full-Stack Developer roadmap