Optionally skip domain in cookie (#43)
If you're using a reverse proxy like Cloudflare Tunnels, you can now set `CONFIG_SKIP_COOKIE_DOMAIN_SECURITY="true"` to avoid login issues. Also makes some UX tweaks to Expenses, and fixes a style issue for Chrome in Windows (#44). Fixes #43 Fixes #44
This commit is contained in:
@@ -30,6 +30,12 @@ export function isCookieDomainAllowed(domain: string) {
|
||||
return allowedDomains.includes(domain);
|
||||
}
|
||||
|
||||
export function isCookieDomainSecurityDisabled() {
|
||||
const isCookieDomainSecurityDisabled = Deno.env.get('CONFIG_SKIP_COOKIE_DOMAIN_SECURITY') === 'true';
|
||||
|
||||
return isCookieDomainSecurityDisabled;
|
||||
}
|
||||
|
||||
export function isEmailEnabled() {
|
||||
const areEmailsAllowed = Deno.env.get('CONFIG_ENABLE_EMAILS') === 'true';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user