# \[HELP\] Kanboard API Requests Returning 302 Redirect

**URL:** <https://forum.yunohost.org/t/help-kanboard-api-requests-returning-302-redirect/35937>\
**Category:** Support apps\
**Tags:** kanboard, english\
**Created:** [March 15, 2025, 11:38am UTC](https://forum.yunohost.org/t/help-kanboard-api-requests-returning-302-redirect/35937 "2025-03-15T11:38:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ramazan-Tetik](https://forum.yunohost.org/user_avatar/forum.yunohost.org/ramazan-tetik/32/11629_2.png) [@Ramazan-Tetik](https://forum.yunohost.org/u/Ramazan-Tetik)\
**Post date:** [March 15, 2025, 11:38am UTC](https://forum.yunohost.org/t/help-kanboard-api-requests-returning-302-redirect/35937/1 "2025-03-15T11:38:48Z")

</div>

**What type of hardware are you using** : Virtual machine  
**What YunoHost version are you running** : 12.0.11  
**What app is this about** : kanboard

### Describe your issue

Hello,

I have successfully installed Kanboard on YunoHost, but I keep getting a 302 redirect error when making API requests. I would appreciate any help on this issue.

💡 **System Information:**

YunoHost Version: 12.0.11  
Kanboard Version: 1.2.43~ynh2  
Installation Environment: Virtual machine running on VirtualBox  
Domain: Local domain (tetik.local)  
Access: Not publicly accessible, only running within the local network.

📌 **Issue Description:**

API requests ([http://tetik.local/kanboard/jsonrpc.php](http://tetik.local/kanboard/jsonrpc.php)) are not working.  
When I test using cURL, I always get the following response:

curl -v -X POST [http://tetik.local/kanboard/jsonrpc.php](http://tetik.local/kanboard/jsonrpc.php)

**Output:**

\< HTTP/1.1 302 Moved Temporarily  
\< Location: [https://tetik.local/yunohost/admin](https://tetik.local/yunohost/admin)

This means that my API calls are always redirected to the YunoHost admin panel.

🔍 **What I Have Tried So Far:**

1️⃣ Tried disabling Kanboard API authentication:

Added the following line to /var/www/kanboard/config.php:

define(‘KANBOARD\_API\_AUTHENTICATION’, false);

Restarted services using systemctl restart nginx php8.3-fpm.

2️⃣ Attempted to disable SSO:

yunohost app setting kanboard unprotected\_uris -v /  
yunohost app setting kanboard protected\_uris -d

3️⃣ Checked Nginx configuration:

Removed the following line from /etc/nginx/conf.d/tetik.local.d/kanboard.conf:

include conf.d/yunohost\_panel.conf.inc;  
Restarted Nginx with systemctl restart nginx, but the issue persists.

4️⃣ Verified Kanboard’s file structure:

/var/www/kanboard/jsonrpc.php exists.  
I can provide the output of ls -l /var/www/kanboard.

5️⃣ Checked Nginx redirection settings:

Output of grep -R “yunohost” /etc/nginx/conf.d/:

/etc/nginx/conf.d/default.d/redirect\_to\_admin.conf: return 302 https://$host/yunohost/admin;  
/etc/nginx/conf.d/tetik.local.conf: include /etc/nginx/conf.d/yunohost\_sso.conf.inc;  
/etc/nginx/conf.d/tetik.local.conf: include /etc/nginx/conf.d/yunohost\_admin.conf.inc;  
Ran nginx -t to test the configuration, and no errors were found.

🛠 **What I Need Help With:**

How can I prevent Kanboard API requests from being redirected to the YunoHost admin panel?  
Is there any additional setting in YunoHost that causes this automatic redirection?  
Do I need to configure Kanboard differently to make it work without SSO?  
I would really appreciate any suggestions or guidance. I can provide logs and additional details if needed.

Thanks in advance! 😊

### Share relevant logs or error messages

\< HTTP/1.1 302 Moved Temporarily  
\< Location: [https://tetik.local/yunohost/admin](https://tetik.local/yunohost/admin)

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [March 30, 2025, 11:39am UTC](https://forum.yunohost.org/t/help-kanboard-api-requests-returning-302-redirect/35937/2 "2025-03-30T11:39:17Z")

</div>

Closed on March 30, 2025, 11:39am UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
