mirror of
https://github.com/plankanban/planka.git
synced 2026-02-05 00:39:58 +03:00
Accessing from multiple URLs / Disable CORS Policy #372
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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_URLin 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.
@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_URLand specify in corsallowOrigins: '*'.