We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad6ff5e commit eb98a5aCopy full SHA for eb98a5a
1 file changed
src/main/java/com/iemr/admin/utils/JwtUserIdValidationFilter.java
@@ -185,7 +185,8 @@ private boolean isOriginAllowed(String origin) {
185
.anyMatch(pattern -> {
186
String regex = pattern
187
.replace(".", "\\.")
188
- .replace("*", ".*");
+ .replace("*", ".*")
189
+ .replace("http://localhost:.*", "http://localhost:\\d+");
190
191
boolean matched = origin.matches(regex);
192
return matched;
0 commit comments