We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5a7c6bf commit ad6ff5eCopy full SHA for ad6ff5e
1 file changed
src/main/java/com/iemr/admin/utils/http/HTTPRequestInterceptor.java
@@ -160,7 +160,8 @@ private boolean isOriginAllowed(String origin) {
160
.anyMatch(pattern -> {
161
String regex = pattern
162
.replace(".", "\\.")
163
- .replace("*", ".*");
+ .replace("*", ".*")
164
+ .replace("http://localhost:.*", "http://localhost:\\d+");
165
return origin.matches(regex);
166
});
167
}
0 commit comments