Because currently CORS sends twice more requests than needed, which makes it slower than alternative cross domain transports & overloads API with pointless payloads.
Inspired by blog post from @homakov.
The basic idea is to bypass the CORS preflight request by putting the actual method and the extra headers on the Accept
header.
- clone the repo
- cd into it,
npm install
node server
- point your browser to
http://localhost:8000