mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Dynamically configure cookie and base-url
When `base-url` is the default (i.e. localhost), the cookie is now configured with the domain doing the request and the webapp is configured to run requests against the host in the address bar of the browser.
This commit is contained in:
@ -83,6 +83,9 @@ case class LenientUri(
|
||||
}
|
||||
)
|
||||
|
||||
def isLocal: Boolean =
|
||||
host.exists(_.equalsIgnoreCase("localhost"))
|
||||
|
||||
def asString: String = {
|
||||
val schemePart = scheme.toList.mkString(":")
|
||||
val authPart = authority.map(a => s"//$a").getOrElse("")
|
||||
|
Reference in New Issue
Block a user