In order to bring this library up to the CORS spec, we need to accomplish the following tasks. Please review the spec and add to this list!!
Simple Cross-Origin Request, Actual Request, and Redirects
Preflight Request
Dynamic Access-Control-Allow-Origin
Specification
Supplementary reading
cc @bukinoshita @infernalmaster @lemol
In order to bring this library up to the CORS spec, we need to accomplish the following tasks. Please review the spec and add to this list!!
Simple Cross-Origin Request, Actual Request, and Redirects
Originheader in the request is not present, stop adding headers and run handlerOriginheader in the request does not match exactly, stop adding headers and run handlerallowCredentialsis true, SetAccess-Control-Allow-Originto the value of theOriginheader (is the client responsible for rejecting ifOriginis*?)Preflight Request
204as empty response? Allow user to change response code?Originheader in the request is not present, stop adding headers and return emptyOriginheader in the request does not match exactly, stop adding headers and return emptyDynamic
Access-Control-Allow-OriginVaryheader Correctly use Vary header #58Specification
Supplementary reading
cc @bukinoshita @infernalmaster @lemol