Skip to content

sbukhtiyarov/lightmine.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightmine.js

Flattr this git repo

AngularJS based Redmine REST API Client with a Responsive Interface.

Prerequisites

  • Tested against Redmine 1.4.4 (Shipped with debian 7).

CORS

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.

Redmine < 2.0

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.

Redmine >= 2.0

There is a plugin available here (GitHub) that provides the headers as needed.

About

AngularJS based Redmine REST API Client with a Responsive Interface

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published