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