Skip to content
This repository has been archived by the owner on Apr 5, 2024. It is now read-only.

Fix CORS regex #333

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ private String buildCorsRegexFromConfig() {
return "";
}
if (allowedCorsOrigins.contains("*")) {
return "*";
return ".*.";
} else {
final StringJoiner stringJoiner = new StringJoiner("|");
allowedCorsOrigins.stream().filter(s -> !s.isEmpty()).forEach(stringJoiner::add);
Expand Down