CORS handling
Created by: elishowk
Hi,
After a discussion about a complete handling of cross-site requests for UCEngine (read https://groups.google.com/d/topic/ucengine/7O-tCun5V74/discussion), I implemented an options_handler.erl to respond to "pre-flight" authorization requests. As you will see, I had to add another json helper to permit passing customized headers. These changes should allow UCEngine API to be fully requested from anywhere and with moderns browsers :
- firefox5, and chrome 12 are tested, but should work since ff3.5
- safari 4 and IE8 are not tested but should work because they implement the same spec for CORS (http://www.w3.org/TR/access-control/)
I hope this would help, it did in my case ! Thanks by the way for the great job on UCEngine.