Skip to content

soarez/turbo-cors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turbo-cors

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.

usage

  1. clone the repo
  2. cd into it, npm install
  3. node server
  4. point your browser to http://localhost:8000

About

a hack to bypass preflight requests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published