mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
Config: Update CORS header defaults and add /api/v1/echo endpoint #3931
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -69,9 +69,6 @@ func GetSession(router *gin.RouterGroup) {
|
||||
// Update user information.
|
||||
sess.RefreshUser()
|
||||
|
||||
// Add auth token to response header.
|
||||
AddAuthTokenHeader(c, authToken)
|
||||
|
||||
// Response includes user data, session data, and client config values.
|
||||
response := GetSessionResponse(authToken, sess, get.Config().ClientSession(sess))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user