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:
Michael Mayer
2024-01-16 14:36:08 +01:00
parent c660c729e2
commit 02a1b12edb
16 changed files with 148 additions and 28 deletions

View File

@@ -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))