Accessing from multiple URLs / Disable CORS Policy #372

Open
opened 2026-02-04 18:49:58 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @Brancliff on GitHub (Oct 24, 2023).

I want to be able to access planka from multiple URLs. I'm using Tailscale to access my normally-offline-only device when I'm away from the house. Tailscale allows me a direct connection to my device, but I have to use a different URL to access it. For example, I might access my device locally with http://local:port, but when I'm away, I'll have to use http://tailscale:port.

When accessing planka through http://local:port, everything runs fine. That's the BASE_URL in my docker-compose. But when accessing planka using http://tailscale:port, I either just get a blank white screen or I might get stuck on the gray screen with the loading circle. These errors will pop up in the browser console:

Access to script at 'http://local:port/static/js/main.ac66f50b.js' from origin 'http://tailscale:port' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space private.

Failed to load resource: net::ERR_FAILED main.ac66f50b.js

I'm not too worried about the security. I'm the only person using my copy of planka, and I can disable Tailscale entirely when it's not needed. I just want the functionality.

Originally created by @Brancliff on GitHub (Oct 24, 2023). I want to be able to access planka from multiple URLs. I'm using Tailscale to access my normally-offline-only device when I'm away from the house. Tailscale allows me a direct connection to my device, but I have to use a different URL to access it. For example, I might access my device locally with http://local:port, but when I'm away, I'll have to use http://tailscale:port. When accessing planka through http://local:port, everything runs fine. That's the `BASE_URL` in my docker-compose. But when accessing planka using http://tailscale:port, I either just get a blank white screen or I might get stuck on the gray screen with the loading circle. These errors will pop up in the browser console: Access to script at 'http://local:port/static/js/main.ac66f50b.js' from origin 'http://tailscale:port' has been blocked by CORS policy: The request client is not a secure context and the resource is in more-private address space `private`. Failed to load resource: net::ERR_FAILED main.ac66f50b.js I'm not too worried about the security. I'm the only person using my copy of planka, and I can disable Tailscale entirely when it's not needed. I just want the functionality.
OVERLORD added the enhancement label 2026-02-04 18:49:58 +03:00
Author
Owner

@meltyshev commented on GitHub (Oct 24, 2023):

Hi! It's already in our roadmap, but we're focused on other tasks for now. It might be faster to do a fork, remove BASE_URL and specify in cors allowOrigins: '*'.

@meltyshev commented on GitHub (Oct 24, 2023): Hi! It's already in our roadmap, but we're focused on other tasks for now. It might be faster to do a fork, remove `BASE_URL` and specify in cors `allowOrigins: '*'`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/planka#372