Accessing from multiple URLs / Disable CORS Policy
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.
Source: plankanban/planka