Trim last allowed origin in comma-delimited list

See gh-33181
This commit is contained in:
kevin.kep
2024-07-10 09:45:07 +09:00
committed by rstoyanchev
parent 6becfe2508
commit 2fe7ab1f92
2 changed files with 6 additions and 1 deletions

View File

@@ -281,7 +281,7 @@ public class CorsConfiguration {
}
}
if (start < rawValue.length()) {
valueConsumer.accept(rawValue.substring(start));
valueConsumer.accept(rawValue.substring(start).trim());
}
}