-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Webhook URL sanity check is too restrictive #6570
Comments
Good point! Since it's on the frontend, if you're blocked by this you can probably do an API call directly (copy the curl in your Chrome network inspector for example and change the url to the one that wasn't accepted) |
Hi, I’d like to work on this issue. |
Changes - Replaced the old regex with a new, more inclusive regex pattern. - Updated the isURL function to use the new pattern.
imho, there is no way to know 'google' is an url if we make the protocol (already the case) and the tld optionals. If we want to remove restrictions I wouldn't update the isUrl method (that could have impact in the rest of the app) but would remove the call to isUrl in the webhook section. |
Hi everyone,
We just ran into this with our on-prem deployment for testing. The sanity check regex for an URL seems way too restrictive:
twenty/packages/twenty-front/src/utils/is-url.ts
Line 6 in 9a0c967
This precludes ip addresses, or hostnames without a tld and a number of other useful urls. I would suggest using something more generic here or adding a config option to override.
Thanks
The text was updated successfully, but these errors were encountered: