refactor: dont pass a domain
This commit is contained in:
parent
ad8de8f5a1
commit
ee8fa2b98d
|
@ -123,7 +123,6 @@ func SetAuthCookie(jc jape.Context, jwt string, apiName string) {
|
||||||
Secure: true,
|
Secure: true,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
Domain: routeableApi.Domain(),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -170,7 +169,6 @@ func EchoAuthCookie(jc jape.Context, apiName string) {
|
||||||
Secure: true,
|
Secure: true,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
Domain: cookies[0].Domain,
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -202,7 +200,7 @@ func ClearAuthCookie(jc jape.Context, apiName string) {
|
||||||
Secure: true,
|
Secure: true,
|
||||||
HttpOnly: true,
|
HttpOnly: true,
|
||||||
Path: "/",
|
Path: "/",
|
||||||
Domain: routeableApi.Domain(),
|
// Domain: "." + routeableApi.Domain(),
|
||||||
})
|
})
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue