mirror of
https://github.com/whyour/qinglong.git
synced 2025-12-23 15:50:07 +08:00
Fix whitelist check to use base-URL-aware paths
Co-authored-by: whyour <22700758+whyour@users.noreply.github.com>
This commit is contained in:
parent
a38b876a74
commit
f5f9d464cb
|
|
@ -83,7 +83,7 @@ export default ({ app }: { app: Application }) => {
|
|||
if (
|
||||
!headerToken &&
|
||||
originPath &&
|
||||
config.apiWhiteList.includes(originPath)
|
||||
jwtWhitelist.includes(originPath)
|
||||
) {
|
||||
return next();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user