mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EDU-3424 Enable About service for all subdomains of hyperskill.org
GitOrigin-RevId: 6128568d9a6a477e1d3bbed3c1a163ccf3918b47
This commit is contained in:
committed by
intellij-monorepo-bot
parent
17e328c211
commit
b2c6daba06
@@ -66,7 +66,7 @@ internal class AboutHttpService : RestService() {
|
||||
private fun isTrustedOrigin(request: HttpRequest): Boolean {
|
||||
val origin = request.origin ?: return false
|
||||
@Suppress("SpellCheckingInspection")
|
||||
return origin == "hyperskill.org"
|
||||
return origin.matches("https?://([a-z0-9-]+\\.)*hyperskill.org$".toRegex())
|
||||
}
|
||||
|
||||
fun writeApplicationInfoJson(out: OutputStream, urlDecoder: QueryStringDecoder?) {
|
||||
|
||||
Reference in New Issue
Block a user