Fix whitelist check to use base-URL-aware paths

Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-12-22 14:45:14 +00:00
parent a38b876a74
commit f5f9d464cb

View File

@ -83,7 +83,7 @@ export default ({ app }: { app: Application }) => {
if (
!headerToken &&
originPath &&
config.apiWhiteList.includes(originPath)
jwtWhitelist.includes(originPath)
) {
return next();
}