π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[server] Add workaround for intermittent Safari CORS errors
Manav Rathi6516b457cbab
diff --git a/server/cmd/museum/main.go b/server/cmd/museum/main.goindex 22199d18e1..a4622e1b70 100644--- a/server/cmd/museum/main.go+++ b/server/cmd/museum/main.go@@ -1007,7 +1007,9 @@ func cors() gin.HandlerFunc {c.Writer.Header().Set("Access-Control-Max-Age", "1728000")if c.Request.Method == http.MethodOptions {- c.AbortWithStatus(http.StatusNoContent)+ // While 204 No Content is more appropriate, Safari intermittently+ // (intermittently!) fails CORS if we return 204 instead of 200 OK.+ c.Status(http.StatusOK)return}c.Next()