You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-24 20:19:10 +02:00
Co-authored-by: yuudi <yuudi@users.noreply.github.com>
This commit is contained in:
@@ -146,6 +146,9 @@ async function main() {
|
||||
}
|
||||
|
||||
function acceptOrigin(origin: string): boolean {
|
||||
// Origin can be string "null"
|
||||
if (origin === 'null') return false;
|
||||
|
||||
const hostname = (new URL(origin)).hostname;
|
||||
const userContentDomain = envVariables.USER_CONTENT_BASE_URL ? (new URL(envVariables.USER_CONTENT_BASE_URL)).hostname : '';
|
||||
|
||||
|
Reference in New Issue
Block a user