View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0026365||mantisbt||api rest||public||2019-11-18 09:45||2019-11-21 01:30|
|Priority||normal||Severity||major||Reproducibility||have not tried|
|Summary||0026365: Fix a possible installation issue for the mantis rest api|
On trying out the rest api, all requests were answered with "401 API token required", although the Authorization token was transmitted.
SetEnvIf Authorization .+ HTTP_AUTHORIZATION=$0
in $MANTISROOT/api/rest/.htaccess, as suggested by https://www.cyotek.com/blog/restoring-missing-authorization-header-when-using-php, fixed the issue.
|Tags||No tags attached.|