mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 04:10:20 +08:00
Fix some bugs in Apple OAuth login path
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user