We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dd5847 commit a0c4cfaCopy full SHA for a0c4cfa
1 file changed
src/featureflags/Program.cs
@@ -60,15 +60,9 @@
60
if (allowedOrigins.Contains(origin))
61
return true;
62
63
- if (!builder.Environment.IsDevelopment())
64
- return false;
65
-
66
return Uri.TryCreate(origin, UriKind.Absolute, out var uri)
67
- && (uri.Host == "localhost"
68
- || uri.Host == "127.0.0.1"
69
- || uri.Host == "::1")
70
- && (uri.Scheme == Uri.UriSchemeHttp
71
- || uri.Scheme == Uri.UriSchemeHttps);
+ && (uri.Host == "localhost" || uri.Host == "127.0.0.1")
+ && (uri.Scheme == Uri.UriSchemeHttp || uri.Scheme == Uri.UriSchemeHttps);
72
})
73
.WithMethods("GET")
74
.WithHeaders("user", "X-API-Key");
0 commit comments