Ignore port when checking referrer
This commit is contained in:
parent
5cfc5b4481
commit
b87835bd18
|
@ -164,6 +164,7 @@ class ImageServer(
|
||||||
return allowedDomains.any {
|
return allowedDomains.any {
|
||||||
referer.substringAfter("//") // Ignore scheme
|
referer.substringAfter("//") // Ignore scheme
|
||||||
.substringBefore("/") // Ignore path
|
.substringBefore("/") // Ignore path
|
||||||
|
.substringBefore(":")
|
||||||
.endsWith(it)
|
.endsWith(it)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue