mikrosimage / OpenRenderManagement

Dispatcher Puli
Other
62 stars 23 forks source link

Added loose CORS support. #20

Closed smaragden closed 9 years ago

smaragden commented 9 years ago

I needed to add CORS header support to be able to communicate with the rest api from client web code. It could probably be more configurable.

teskenazi commented 9 years ago

Actually, Cross-domain is allready supported with jsonp ( http://json-p.org/ ) rather than CORS.

By the way, if you really need CORS, you should probably add PUT and DELETE methods too, since they are used by the API.

smaragden commented 9 years ago

Ok. Thanks. JSONP should be enough. I will close this pull request.