If you do web dev, you too probably wake up at 4am screaming about CORS. The 1000th time, I decided to fix this once and for all. Tell this page what you're doing & what you want, and it'll explain what happens & what to do, all the way to ready-to-use code.