mirror of
https://github.com/MadsLorentzen/ai-job-search.git
synced 2026-11-08 16:07:40 +00:00
fix(portal-clis): reject foreign detail URLs in Jobbank and Jobnet (#672)
* fix(portal-clis): validate Jobbank and Jobnet detail URL hosts * fix(portal-clis): preserve scheme-less portal detail URLs Normalize host-like input with HTTPS before validating the portal host. Cover apex, www, mobile, uppercase and legacy routes while rejecting foreign or deceptive hosts and query-only posting paths. Thanks to MadsLorentzen for finding the compatibility regression in #672. * changelog: place the #672 entry under [Unreleased] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Mads Lorentzen <madslorentzen_17@hotmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
7 files changed
+111
-2
No files matched your search
@@ -0,0 +1,3 @@
|
||||
globalThis.fetch = Object.assign(async () => {
|
||||
throw new Error("unexpected network request for an invalid detail URL")
|
||||
}, { preconnect() {} })
|
||||
Reference in new issue
Block a user