jk / RestServer

A PHP REST server for providing a very light-weight REST API. If you want color highlighting support for TextMate, look here: https://gist.github.com/1149076

Home Page:http://jacwright.com/blog/250/simple-rest-server-in-php-supports-json-amf/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Implement automatic CORS support

jk opened this issue · comments

WIP

To support AJAX requests from other sites, we want to implement CORS-support.

If a controller does not have an OPTIONS route, restserver should take care of this and make that endpoint available to send the adequate headers to enable browser's preflight requests.