Fix some bugs in Apple OAuth login path

This commit is contained in:
Yang Luo
2023-10-31 22:36:56 +08:00
parent b285144a64
commit 140737b2f6
3 changed files with 8 additions and 3 deletions

View File

@ -51,6 +51,11 @@ func CorsFilter(ctx *context.Context) {
return
}
if originHostname == "appleid.apple.com" {
setCorsHeaders(ctx, origin)
return
}
if ctx.Request.Method == "POST" && ctx.Request.RequestURI == "/api/login/oauth/access_token" {
setCorsHeaders(ctx, origin)
return