-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bueno): use URL constructor to parse url (#4644)
The previous URL validation disallowed localhost and 127.0.0.1-type endpoints. Instead of using a regex to parse the URL, defer the parsing to the URL constructor, which is more flexible. To do so, I updated the TypeScript configuration to allow the use of DOM-related types in the project. This change came up as I was attempting to use `proxyBaseUrl` in headless to call a locally-running instance of a service, which was exposed on localhost. See https://coveo.slack.com/archives/G016TA2G485/p1730933467640229
- Loading branch information
1 parent
61ff4ea
commit e48646b
Showing
3 changed files
with
32 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters