fix: remove port from cookie domain

This commit is contained in:
Stavros
2026-06-21 17:32:36 +03:00
parent a4f9c897a6
commit e53cbf414d
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ func TestGetRootDomain(t *testing.T) {
// URL with port
domain = "http://sub.tinyauth.app:8080"
expected = "tinyauth.app:8080"
expected = "tinyauth.app"
result, err = utils.GetCookieDomain(domain, true)
assert.NoError(t, err)
assert.Equal(t, expected, result)