mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 00:27:31 +00:00
fix: CORS on assets api (#3659)
This commit is contained in:
@@ -125,7 +125,10 @@ func GetAllPermissionsFromCtx(ctx context.Context) []string {
|
||||
func checkOrigin(ctx context.Context, origins []string) error {
|
||||
origin := grpc.GetGatewayHeader(ctx, http_util.Origin)
|
||||
if origin == "" {
|
||||
return nil
|
||||
origin = http_util.OriginFromCtx(ctx)
|
||||
if origin == "" {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
if http_util.IsOriginAllowed(origins, origin) {
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user