AngularJS based Redmine REST API Client with a Responsive Interface.
- Tested against Redmine 1.4.4 (Shipped with debian 7).
Redmine does not support proper handling of cross origin resource sharing (CORS). Therefore requests against the Redmine REST API with modern web browsers will usually fail.
If you are running redmine on an Apache Webserver with the Passenger Mod you can change the Vhost in the following way:
- Enable mod_rewrite
- Enable mod_headers
- Add the following code to the Vhost:
RewriteEngine On
RewriteCond %{REQUEST_METHOD} OPTIONS
RewriteRule ^(.*)$ $1 [R=200,L]
Header always set Access-Control-Allow-Origin "*"
Header always set Access-Control-Allow-Methods "POST, GET, OPTIONS, DELETE, PUT"
Header always set Access-Control-Allow-Headers "origin, content-type, accept, authorization, x-requested-with, x-redmine-api-key"
If this doesn't work, try the solution suggested here.
There is a plugin available here (GitHub) that provides the headers as needed.