Allow redirect URL for casdoor-app

This commit is contained in:
Yang Luo
2023-09-27 20:17:37 +08:00
parent 5ec49dc883
commit 1461268a51
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ func CorsFilter(ctx *context.Context) {
originHostname := getHostname(origin)
host := ctx.Request.Host
if strings.HasPrefix(origin, "http://localhost") || strings.HasPrefix(origin, "http://127.0.0.1") {
if strings.HasPrefix(origin, "http://localhost") || strings.HasPrefix(origin, "http://127.0.0.1") || strings.HasPrefix(origin, "http://casdoor-app") {
setCorsHeaders(ctx, origin)
return
}