fix: group moderation and profile sync
This commit is contained in:
@@ -298,7 +298,9 @@ func CORSHandler(method string, reqHeader http.Header, allowedOrigins []AllowedO
|
||||
return respHeader, http.StatusNoContent
|
||||
}
|
||||
|
||||
respHeader["Access-Control-Allow-Headers"] = []string{"*"}
|
||||
if requestedHeaders := reqHeader.Get("Access-Control-Request-Headers"); requestedHeaders != "" {
|
||||
respHeader["Access-Control-Allow-Headers"] = []string{requestedHeaders}
|
||||
}
|
||||
respHeader["Access-Control-Allow-Credentials"] = []string{"true"}
|
||||
respHeader["Access-Control-Allow-Methods"] = []string{strings.Join(allowMethods, ", ")}
|
||||
respHeader["Access-Control-Max-Age"] = []string{"86400"}
|
||||
|
||||
Reference in New Issue
Block a user