we have tried maybe 100 coding combinations based on other's suggestions but cannot get express working with preflight - keeps failing on connection refused and options - have tried with chromium and firefox - here is the curl we are using as a test (fails on our angular apps as well). If someone could show an express setup that works with the curl test (or correct our curl test if necessary). or if there is a way to turn off pre-flight requests (shame, don't even need the damn pre-flight)

would really appreciate any help if we are to use express (or restify) on the server side.

//======== curl ===========================
curl -i -X OPTIONS -H "Access-Control-Request-Method: POST" http://localhost:3000/api/account -d '{"accountname":"test","organization":"test"}' -H "Content-Type: application/json" -H "Origin: http://localhost:8000"; -H "Access-Control-Request-Headers: X-Requested-With" --verbose

--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to